Commit 94f1434

HPCesia <me@hpcesia.com>
2025-02-09 14:14:37
perf: limit toc card height
1 parent 02cee10
Changed files (1)
src
components
widgets
src/components/widgets/TOC.astro
@@ -43,7 +43,7 @@ const tocTree = buildTocTree(headings);
   class:list={['card card-bordered border-base-300 bg-base-100 border-2', className]}
   transition:name="toc-card"
 >
-  <div class="card-body p-2">
+  <div class="card-body max-h-96 overflow-y-auto p-2">
     <ul>
       {
         // 递归渲染 TOC 组件