Skip to content

Commit 8d42ff9

Browse files
fix: 调整目录框位置和最大高度以改善布局
Signed-off-by: wangsimiao1 <wangsimiao1@xiaomi.com>
1 parent 4b35dfe commit 8d42ff9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

_sass/pages/_post.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,9 @@ header {
261261
}
262262

263263
#toc-wrapper {
264-
top: 0;
265-
transition: top 0.2s cubic-bezier(0.22, 1, 0.36, 1);
264+
top: 3rem;
266265
overflow-y: auto;
267-
max-height: 100vh;
266+
max-height: calc(100vh - 3rem);
268267
scrollbar-width: none;
269268
margin-top: 2rem;
270269

0 commit comments

Comments
 (0)