mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 19:39:51 +08:00
docs: fix website sider border missing (#51925)
* docs: fix website sider border missing * Update index.tsx Signed-off-by: afc163 <afc163@gmail.com> * Update index.tsx Signed-off-by: afc163 <afc163@gmail.com> * Update .dumi/theme/slots/Sidebar/index.tsx Co-authored-by: lijianan <574980606@qq.com> Signed-off-by: afc163 <afc163@gmail.com> * Update index.tsx Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com> Co-authored-by: lijianan <574980606@qq.com>
This commit is contained in:
parent
05b9c25bf2
commit
115a4166da
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user