Polish TOC bullets
This commit is contained in:
@@ -111,18 +111,18 @@ export function PostToc() {
|
|||||||
ref={(el) => {
|
ref={(el) => {
|
||||||
itemRefs.current[item.id] = el;
|
itemRefs.current[item.id] = el;
|
||||||
}}
|
}}
|
||||||
className={item.depth === 3 ? 'pl-3' : ''}
|
className={`relative ${item.depth === 3 ? 'pl-3' : 'pl-0'}`}
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href={`#${item.id}`}
|
href={`#${item.id}`}
|
||||||
onClick={handleClick(item.id)}
|
onClick={handleClick(item.id)}
|
||||||
className={`line-clamp-2 inline-flex items-center gap-2 hover:text-blue-600 dark:hover:text-blue-400 ${
|
className={`line-clamp-2 inline-flex items-center gap-2 pl-2 hover:text-blue-600 dark:hover:text-blue-400 ${
|
||||||
item.id === activeId
|
item.id === activeId
|
||||||
? 'text-blue-600 dark:text-blue-400 font-semibold'
|
? 'text-blue-600 dark:text-blue-400 font-semibold'
|
||||||
: ''
|
: ''
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faCircle} className="h-1.5 w-1.5 text-slate-300" />
|
<FontAwesomeIcon icon={faCircle} className="h-1.5 w-1.5 text-slate-300" aria-hidden="true" />
|
||||||
{item.text}
|
{item.text}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user