From a0bdec8da6c047166f8da897596e2e1cc7bc6524 Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Wed, 26 Aug 2020 13:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20UI:=20fix=20min=20screen=20style?= =?UTF-8?q?=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close ant-design/ant-design-pro#7249 --- config/defaultSettings.ts | 2 +- src/components/GlobalHeader/index.less | 22 ---------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/config/defaultSettings.ts b/config/defaultSettings.ts index 1f111286..51726a31 100644 --- a/config/defaultSettings.ts +++ b/config/defaultSettings.ts @@ -8,7 +8,7 @@ const proSettings: DefaultSettings = { navTheme: 'dark', // 拂晓蓝 primaryColor: '#1890ff', - layout: 'side', + layout: 'top', contentWidth: 'Fluid', fixedHeader: false, fixSiderbar: true, diff --git a/src/components/GlobalHeader/index.less b/src/components/GlobalHeader/index.less index 29d4e6ed..a7fa9bff 100644 --- a/src/components/GlobalHeader/index.less +++ b/src/components/GlobalHeader/index.less @@ -80,25 +80,3 @@ } } } - -@media only screen and (max-width: @screen-md) { - :global(.ant-divider-vertical) { - vertical-align: unset; - } - .name { - display: none; - } - .right { - position: absolute; - top: 0; - right: 12px; - .account { - .avatar { - margin-right: 0; - } - } - .search { - display: none; - } - } -}