Merge pull request #2329 from Femoon/fix/catalog_style

fix: Sidebar width changes and catalog styles
This commit is contained in:
tangly1024
2024-04-25 16:53:08 +08:00
committed by GitHub
12 changed files with 12 additions and 12 deletions

View File

@@ -74,7 +74,7 @@ const Catalog = ({ post }) => {
notion-table-of-contents-item-indent-level-${tocItem.indentLevel} `}
>
<span style={{ display: 'inline-block', marginLeft: tocItem.indentLevel * 16 }}
className={`${activeSection === id && ' font-bold text-gray-500 underline'}`}
className={`truncate ${activeSection === id ? 'font-bold text-gray-500 underline' : ''}`}
>
{tocItem.text}
</span>