From 26c914d1db1a5135d5946d070fe7d4dafdf06b14 Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 3 Jun 2023 01:24:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BE=A7=E8=BE=B9=E6=A0=8F?= =?UTF-8?q?=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 | 22 +++++++++++++++++ src/layouts/index.tsx | 54 ++++++++++++++++++++++-------------------- 2 files changed, 50 insertions(+), 26 deletions(-) diff --git a/src/layouts/index.less b/src/layouts/index.less index c9b22554..1a1010a5 100644 --- a/src/layouts/index.less +++ b/src/layouts/index.less @@ -333,6 +333,7 @@ select:-webkit-autofill:focus { .ant-pro-sider-logo { .title { + display: flex; height: 32px; margin: 0 5px; font-weight: 600; @@ -340,6 +341,11 @@ select:-webkit-autofill:focus { line-height: 32px; vertical-align: middle; animation: pro-layout-title-hide 0.3s; + + a { + display: inline-flex; + align-items: center; + } } img { @@ -353,6 +359,10 @@ select:-webkit-autofill:focus { // 移动端logo被拉伸 width: auto !important; } + + .ant-image { + display: inline-flex; + } } pre { @@ -396,3 +406,15 @@ pre { textarea.ant-input { word-break: break-all; } + +.ant-pro-sider-collapsed, +body[data-mode='phone'] header { + .title { + display: none; + } +} + +.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed { + box-shadow: none; + border-right: 1px solid #eee; +} diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx index 90e47c61..3ab72310 100644 --- a/src/layouts/index.tsx +++ b/src/layouts/index.tsx @@ -283,33 +283,35 @@ export default function () { logo={ <> - 青龙 - { - e.stopPropagation(); - }} - > - + 青龙 + { + e.stopPropagation(); + }} > - - - v{systemInfo?.version} - - - - + + + + v{systemInfo?.version} + + + + + } title={false}