Skip to content

Commit 490d750

Browse files
Broken sidebar bug fix (#1180)
* Fix #1111 redirecting issue in Get Started * Updated the previous PR fixing #1111 * Made some changes and fixed the issue #1111 with a modified PR * Made some changes in the previous PR * Fix #1172 Broken content list in sidebar * Fixed the unrelated change and restored the code from the main codebase
1 parent f8bfd15 commit 490d750

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

components/StyledMarkdown.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -552,11 +552,8 @@ export function TableOfContentMarkdown({
552552
return (
553553
<a
554554
href={`#${slug}`}
555-
className='block cursor-pointer mb-3 max-sm:text-sm text-slate-600 dark:text-slate-300 leading-4 ml-[-0.40rem] font-medium'
555+
className='flex cursor-pointer mb-3 max-sm:text-sm text-slate-600 dark:text-slate-300 leading-6 font-medium'
556556
>
557-
<span className='mr-1 text-blue-400/90 text-[1em] flex justify-center items-center'>
558-
&#9679;
559-
</span>
560557
{children}
561558
</a>
562559
);
@@ -572,7 +569,7 @@ export function TableOfContentMarkdown({
572569
return (
573570
<a
574571
href={`#${slug}`}
575-
className='block cursor-pointer mb-3 text-slate-600 dark:text-slate-300 leading-4 font-medium'
572+
className='block cursor-pointer mb-3 text-slate-600 dark:text-slate-300 leading-5 font-medium ml-4'
576573
>
577574
{children}
578575
</a>

0 commit comments

Comments
 (0)