fix toc overflow

This commit is contained in:
2026-01-19 17:56:54 +08:00
parent dce351a9da
commit ee7012ace9

View File

@@ -18,7 +18,7 @@ const parentId = isCurrentSubpost ? getParentId(currentPostId) : currentPostId
sections.length > 0 && (
<div
id="toc-sidebar-container"
class="sticky top-20 col-start-1 row-span-1 mr-8 ml-auto hidden h-[calc(100vh-5rem)] max-w-md xl:block"
class="sticky top-20 col-start-1 row-span-1 mr-8 ml-auto hidden h-[calc(100vh-5rem)] max-w-[250px] xl:block"
>
<ScrollArea
client:load