Skip to content

Commit

Permalink
docs: fix sider border issue of documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 17, 2024
1 parent 5321c19 commit 9bcf3f4
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .dumi/theme/slots/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,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,
Expand Down Expand Up @@ -92,18 +93,13 @@ const useStyle = createStyles(({ token, css }) => {
`,
mainMenu: css`
z-index: 1;
position: sticky;
top: ${token.headerHeight}px;
width: 100%;
height: 100%;
max-height: calc(100vh - ${token.headerHeight}px);
overflow: hidden;
scrollbar-width: thin;
scrollbar-color: unset;
.ant-menu {
padding: 0 4px;
}
position: sticky;
top: ${token.headerHeight + token.contentMarginTop}px;
width: 100%;
max-height: calc(100vh - ${token.headerHeight + token.contentMarginTop}px);
overflow: hidden;
scrollbar-width: thin;
scrollbar-gutter: stable;
&:hover {
overflow-y: auto;
Expand Down

0 comments on commit 9bcf3f4

Please sign in to comment.