docs: fix error when translating page (#13681)

This commit is contained in:
Shahed Nasser
2025-10-03 16:03:33 +03:00
committed by GitHub
parent fcb977a989
commit ad46a86a8f

View File

@@ -126,9 +126,12 @@ const TocItem = ({ item, activeItemId }: TocItemProps) => {
scrollToElement(elm)
}}
>
{item.id === activeItemId && (
<span className="absolute left-0 top-0 w-[1.5px] h-full bg-medusa-fg-base rounded-full" />
)}
<span
className={clsx(
"absolute left-0 top-0 w-[1.5px] h-full bg-medusa-fg-base rounded-full",
item.id !== activeItemId && "invisible"
)}
/>
{item.title}
</Link>
{(item.children?.length ?? 0) > 0 && (