溢出文本增加tooltip

This commit is contained in:
Bhwa233
2024-03-15 18:25:35 +08:00
parent 725622621f
commit 74add36f63

View File

@@ -72,6 +72,7 @@ const Catalog = ({ toc }) => {
>
<span style={{ display: 'inline-block', marginLeft: tocItem.indentLevel * 16 }}
className={`${activeSection === id && ' font-bold text-red-400 underline'}`}
title={tocItem.text}
>
{tocItem.text}
</span>