feat: 调整toc样式

This commit is contained in:
2026-08-28 23:21:22 +08:00
parent 24fe52cfe3
commit 0e917adc3b

View File

@@ -30,18 +30,18 @@ const lowLevel = Math.min(...toc.map((v) => v.level));
<style>
.toc-mount {
position: absolute;
top: -20px;
height: 100%;
top: 0;
bottom: -64px;
right: -320px;
width: 280px;
padding: 24px 0;
padding: 0px 0;
}
.toc {
position: sticky;
top: 60px;
height: calc(100vh - 120px);
bottom: -64px;
width: 100%;
overflow-y: auto;
display: flex;
flex-direction: column;