Skip to content

Commit

Permalink
Reduce table of content gap
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Apr 4, 2024
1 parent ff94ea7 commit f085962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TableOfContent/TableOfContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function TableOfContent(props: TableOfContentProps) {

<ol
className={cn(
'mt-2 max-lg:absolute max-lg:top-full max-lg:mt-0 max-lg:w-full space-y-0.5 max-lg:bg-white max-lg:shadow',
'mt-0.5 max-lg:absolute max-lg:top-full max-lg:mt-0 max-lg:w-full space-y-0 max-lg:bg-white max-lg:shadow',
!isOpen && 'hidden lg:block',
isOpen && 'block',
)}
Expand All @@ -68,7 +68,7 @@ export function TableOfContent(props: TableOfContentProps) {
</a>

{heading.children.length > 0 && (
<ol className="my-0 ml-4 mt-1 max-lg:ml-0 max-lg:mt-0 max-lg:list-none space-y-0.5">
<ol className="my-0 ml-4 mt-1 max-lg:ml-0 max-lg:mt-0 max-lg:list-none space-y-0">
{heading.children.map((children) => {
return (
<li key={children.slug}>
Expand Down

0 comments on commit f085962

Please sign in to comment.