From 1d536cdd5317b1484bcad61677487678a9f8b3fa Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 10 Mar 2022 23:53:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=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 | 28 +++++++++++++++++++--------- src/layouts/index.tsx | 2 +- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/layouts/index.less b/src/layouts/index.less index 2362815e..8efe8d14 100644 --- a/src/layouts/index.less +++ b/src/layouts/index.less @@ -26,6 +26,7 @@ .monaco-editor:not(.rename-box) { height: calc(100vh - 128px) !important; height: calc(100vh - var(--vh-offset, 0px) - 128px) !important; + .view-overlays .current-line { border-width: 0; } @@ -33,6 +34,7 @@ .rename-box { height: 0; + .rename-input { height: 0; padding: 0 !important; @@ -43,6 +45,7 @@ .ant-pro-grid-content.wide { max-width: unset !important; overflow: auto; + .ant-pro-page-container-children-content { overflow: auto; height: 100%; @@ -57,6 +60,7 @@ .ant-tooltip { max-width: 500px !important; + .ant-tooltip-inner { word-break: break-all !important; } @@ -72,6 +76,7 @@ .log-select { width: 250px; } + .ant-page-header-heading-left { min-width: 100px; } @@ -81,6 +86,7 @@ .config-select { width: 250px; } + .ant-page-header-heading-left { min-width: 100px; } @@ -119,10 +125,13 @@ flex-direction: column; height: calc(100vh - 48px); height: calc(100vh - var(--vh-offset, 0px) - 48px); + .ant-pro-grid-content.wide { flex: 1; + .ant-pro-grid-content-children { height: calc(100% - 36px); + > div, .log-container, .react-codemirror2, @@ -197,6 +206,7 @@ .Resizer.disabled { cursor: not-allowed; } + .Resizer.disabled:hover { border-color: transparent; } @@ -209,6 +219,7 @@ .inline-countdown.ant-statistic { display: inline-block; + .ant-statistic-content { font-size: 14px; padding: 0 3px; @@ -253,6 +264,7 @@ .ant-pro-basicLayout-content { margin: 18px; + .ant-pro-page-container { margin: -18px -18px -18px; } @@ -280,25 +292,23 @@ .side-menu-user-drop-menu { position: relative; - margin: 0; - padding: 4px 0; text-align: left; - background-clip: padding-box; outline: none; - background-color: #fff; + padding: 4px 0; + border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 4px; - box-shadow: 0 6px 16px -8px rgb(0 0 0 / 8%), 0 9px 28px 0 rgb(0 0 0 / 5%), - 0 12px 48px 16px rgb(0 0 0 / 3%); - .ant-dropdown-menu-item:hover { - color: #1890ff; - } + background-color: #373739; + box-shadow: 0 4px 10px rgb(0 0 0 / 10%); + overflow: auto; } .ant-pro-sider-logo { padding: 16px 8px !important; + h1 { margin-left: 5px !important; } + img { width: 32px !important; border-radius: 52% !important; diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx index 2ba49ca7..dd4edbeb 100644 --- a/src/layouts/index.tsx +++ b/src/layouts/index.tsx @@ -272,7 +272,7 @@ export default function (props: any) { collapsed={collapsed} rightContentRender={() => ctx.isPhone && ( - + } /> admin