main
mula.liu 2026-04-01 09:14:02 +08:00
parent d298174439
commit 355be362fc
2 changed files with 16 additions and 0 deletions

View File

@ -22,6 +22,13 @@
background: var(--sider-bg); background: var(--sider-bg);
} }
/* 修复 Sider 内部 flex 布局 */
.document-sider .ant-layout-sider-children {
display: flex;
flex-direction: column;
height: 100%;
}
.sider-header { .sider-header {
padding: 16px 20px; padding: 16px 20px;
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
@ -76,6 +83,7 @@
padding: 8px; padding: 8px;
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden;
background: var(--sider-bg); background: var(--sider-bg);
color: var(--text-color); color: var(--text-color);
} }

View File

@ -18,6 +18,13 @@
background: var(--sider-bg); background: var(--sider-bg);
} }
/* 修复 Sider 内部 flex 布局 */
.docs-sider .ant-layout-sider-children {
display: flex;
flex-direction: column;
height: 100%;
}
.docs-sider-header { .docs-sider-header {
padding: 16px 20px; padding: 16px 20px;
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
@ -71,6 +78,7 @@
.docs-menu { .docs-menu {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden;
border-right: none; border-right: none;
background: var(--sider-bg); background: var(--sider-bg);
color: var(--text-color); color: var(--text-color);