From 115a4166daf26c8ecd3bd4b5332615ae1769468c Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 14 Dec 2024 22:45:30 +0800 Subject: [PATCH] docs: fix website sider border missing (#51925) * docs: fix website sider border missing * Update index.tsx Signed-off-by: afc163 * Update index.tsx Signed-off-by: afc163 * Update .dumi/theme/slots/Sidebar/index.tsx Co-authored-by: lijianan <574980606@qq.com> Signed-off-by: afc163 * Update index.tsx Signed-off-by: afc163 --------- Signed-off-by: afc163 Co-authored-by: lijianan <574980606@qq.com> --- .dumi/theme/slots/Sidebar/index.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.dumi/theme/slots/Sidebar/index.tsx b/.dumi/theme/slots/Sidebar/index.tsx index 13699a855d..31e08d864f 100644 --- a/.dumi/theme/slots/Sidebar/index.tsx +++ b/.dumi/theme/slots/Sidebar/index.tsx @@ -8,13 +8,14 @@ import useMenu from '../../../hooks/useMenu'; import SiteContext from '../SiteContext'; const useStyle = createStyles(({ token, css }) => { - const { antCls, fontFamily, colorSplit } = token; + const { antCls, fontFamily, colorSplit, marginXXL, paddingXXS } = token; return { asideContainer: css` min-height: 100%; - padding-bottom: 48px; + padding-bottom: ${marginXXL}px !important; font-family: Avenir, ${fontFamily}, sans-serif; + padding: 0 ${paddingXXS}px; &${antCls}-menu-inline { ${antCls}-menu-submenu-title h4, @@ -94,14 +95,10 @@ const useStyle = createStyles(({ token, css }) => { position: sticky; top: ${token.headerHeight + token.contentMarginTop}px; width: 100%; - height: 100%; max-height: calc(100vh - ${token.headerHeight + token.contentMarginTop}px); overflow: hidden; scrollbar-width: thin; scrollbar-gutter: stable; - .ant-menu { - padding: 0 4px; - } &:hover { overflow-y: auto;