fix: expanding clickable region of TOC expander icons, closes #1033 (#1044)

This commit is contained in:
Huang Xin
2025-05-06 12:45:51 +08:00
committed by GitHub
parent 9669f1272d
commit e03636e0a1
@@ -74,7 +74,14 @@ const TOCItemView: React.FC<{
}`}
>
{item.subitems && (
<span onClick={handleToggleExpand} className='inline-block cursor-pointer'>
<span
onClick={handleToggleExpand}
className='inline-block cursor-pointer'
style={{
padding: '12px',
margin: '-12px',
}}
>
{createExpanderIcon(isExpanded)}
</span>
)}