main
mula.liu 2026-05-09 14:20:38 +08:00
parent fc617cf678
commit d621fd8d24
2 changed files with 21 additions and 0 deletions

View File

@ -178,6 +178,13 @@
flex-direction: column;
}
.docs-toc-sider .ant-layout-sider-children {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
}
.toc-header {
padding: 16px;
border-bottom: 1px solid var(--border-color);
@ -196,12 +203,15 @@
.toc-content {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: auto;
padding: 16px;
}
.toc-content .ant-anchor {
display: block;
min-height: max-content;
padding-left: 0;
padding-bottom: 65px;
/* 给Anchor组件添加底部内边距避免最后一项被遮挡 */

View File

@ -152,6 +152,13 @@
flex-direction: column;
}
.preview-toc-sider .ant-layout-sider-children {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
}
.toc-header {
padding: 16px;
border-bottom: 1px solid var(--border-color);
@ -170,13 +177,17 @@
.toc-content {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: auto;
padding: 16px;
}
.toc-content .ant-anchor {
display: block;
min-height: max-content;
padding-left: 0;
padding-bottom: 65px;
}
.toc-content .ant-anchor-link {