fix: catalog style

This commit is contained in:
Femoon
2024-04-24 17:40:56 +08:00
parent afb3cf0b95
commit e78151cca2
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>