Polish TOC bullets
This commit is contained in:
@@ -111,18 +111,18 @@ export function PostToc() {
|
||||
ref={(el) => {
|
||||
itemRefs.current[item.id] = el;
|
||||
}}
|
||||
className={item.depth === 3 ? 'pl-3' : ''}
|
||||
className={`relative ${item.depth === 3 ? 'pl-3' : 'pl-0'}`}
|
||||
>
|
||||
<a
|
||||
href={`#${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
|
||||
? '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}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user