Skip to content

Commit

Permalink
Fix: Fixing text size in TableOfContent component (#711)
Browse files Browse the repository at this point in the history
* fixing text size

* resizing dots
  • Loading branch information
DhairyaMajmudar authored May 25, 2024
1 parent 1d7b007 commit faf974d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/StyledMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ export function TableOfContentMarkdown({
return (
<a
href={`#${slug}`}
className='block cursor-pointer mb-3 text-sm leading-4 ml-[-0.40rem] font-bold'
className='block cursor-pointer mb-3 max-sm:text-sm text-base leading-4 ml-[-0.40rem] font-bold'
>
<span className='mr-1 text-blue-400 text-[1.5em]'>
&#9679;
Expand All @@ -546,7 +546,7 @@ export function TableOfContentMarkdown({
return (
<a
href={`#${slug}`}
className='block cursor-pointer mb-3 text-sm leading-4 -ml-[7px] font-bold'
className='block cursor-pointer mb-3 max-sm:text-sm text-base leading-4 -ml-[9px] max-sm:-ml-[7px] font-bold'
>
<span className='mr-1 text-blue-400 text-[1em]'>&#9679;</span>
{children}
Expand All @@ -563,9 +563,9 @@ export function TableOfContentMarkdown({
return (
<a
href={`#${slug}`}
className='flex flex-row items-center cursor-pointer mb-3 text-sm leading-4 ml-[-0.15rem]'
className='flex flex-row items-center cursor-pointer mb-3 max-sm:text-sm text-base leading-4 ml-[-0.15rem]'
>
<span className='text-blue-400 text-[0.29em] ml-1'>
<span className='text-blue-400 text-[0.28em] ml-1 max-sm:w-[18px]'>
&#9679; &#9679; &#9679; &#9679;
</span>
<span className='mr-1 text-blue-400 text-[0.75em]'>
Expand All @@ -586,9 +586,9 @@ export function TableOfContentMarkdown({
return (
<a
href={`#${slug}`}
className='flex flex-row items-center cursor-pointer mb-3 text-sm leading-4 ml-[-0.15rem] '
className='flex flex-row items-center cursor-pointer mb-3 max-sm:text-sm text-base leading-4 ml-[-0.15rem]'
>
<span className='text-blue-400 text-[0.35em] ml-1'>
<span className='text-blue-400 text-[0.28em] ml-1 max-sm:w-[48px]'>
&#9679; &#9679; &#9679; &#9679; &#9679; &#9679;
&#9679; &#9679; &#9679; &#9679; &#9679;
</span>
Expand Down

0 comments on commit faf974d

Please sign in to comment.