Reduce table of content gap

pull/5471/head
Kamran Ahmed 8 months ago
parent ff94ea7116
commit f0859628f7
  1. 4
      src/components/TableOfContent/TableOfContent.tsx

@ -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',
)}
@ -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}>

Loading…
Cancel
Save