From 59c26d90d3e158940df90296781451bcd55e3f6c Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 6 Apr 2023 21:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=8B=E6=9C=BA=E7=AB=AF?= =?UTF-8?q?=E7=BD=91=E9=A1=B5=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/index.less | 4 ++-- src/layouts/index.tsx | 2 +- src/pages/crontab/index.less | 13 ++++++++----- src/pages/crontab/index.tsx | 2 +- src/utils/hooks.ts | 2 ++ 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/layouts/index.less b/src/layouts/index.less index 951fba41..d0358657 100644 --- a/src/layouts/index.less +++ b/src/layouts/index.less @@ -26,8 +26,8 @@ body { } .ant-modal-body { - max-height: calc(80vh - 110px); - max-height: calc(80vh - var(--vh-offset, 110px)); + max-height: calc(90vh - 110px); + max-height: calc(90vh - var(--vh-offset, 110px)); overflow-y: auto; } diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx index beee1bde..484ebf27 100644 --- a/src/layouts/index.tsx +++ b/src/layouts/index.tsx @@ -271,7 +271,7 @@ export default function () { // @ts-ignore title={ <> - 青龙 + 青龙 { { title: '操作', key: 'action', - width: 100, + width: 130, render: (text, record, index) => { const isPc = !isPhone; return ( diff --git a/src/utils/hooks.ts b/src/utils/hooks.ts index 9dda08b2..1103d586 100644 --- a/src/utils/hooks.ts +++ b/src/utils/hooks.ts @@ -14,11 +14,13 @@ export const useCtx = () => { setMarginLeft(0); setMarginTop(0); setIsPhone(true); + document.body.setAttribute('data-mode', 'phone'); } else { setWidth('100%'); setMarginLeft(0); setMarginTop(-72); setIsPhone(false); + document.body.setAttribute('data-mode', 'desktop'); } }, []);