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> <style>
.toc-mount { .toc-mount {
position: absolute; position: absolute;
top: -20px; top: 0;
height: 100%; bottom: -64px;
right: -320px; right: -320px;
width: 280px; width: 280px;
padding: 24px 0; padding: 0px 0;
} }
.toc { .toc {
position: sticky; position: sticky;
top: 60px; top: 60px;
height: calc(100vh - 120px); height: calc(100vh - 120px);
bottom: -64px; width: 100%;
overflow-y: auto; overflow-y: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;