From a772401309c4552a1c3a3f2c76087db2ff48a61c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E4=B9=90?= Date: Tue, 29 Jan 2019 16:24:59 +0800 Subject: [PATCH] fix: horizontal scroll bar appears on SiderMenu with light navTheme (#3381) * fix: horizontal scroll bar appears on SiderMenu with light navTheme * a better solution --- src/components/SiderMenu/index.less | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/SiderMenu/index.less b/src/components/SiderMenu/index.less index d801b4bd..c08248d1 100644 --- a/src/components/SiderMenu/index.less +++ b/src/components/SiderMenu/index.less @@ -35,9 +35,18 @@ position: fixed; top: 0; left: 0; - :global(.ant-menu-root) { - overflow-y: auto; - height: ~'calc(100vh - @{nav-header-height})'; + :global { + .ant-menu-root { + overflow-y: auto; + height: ~'calc(100vh - @{nav-header-height})'; + } + .ant-menu-inline { + border-right: 0; + .ant-menu-item, + .ant-menu-submenu-title { + width: 100%; + } + } } } &.light { -- GitLab