Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/src/asciidoc/TableOfContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export const DesktopOutline = ({
}

if (toc && toc.length > 0) {
return <ul className={cn('toc', className)}>{renderToc(toc)}</ul>
return <ul className={cn('toc w-[--toc-width]', className)}>{renderToc(toc)}</ul>
}

return null
Expand Down Expand Up @@ -352,13 +352,13 @@ export const SmallScreenOutline = ({
>
<Accordion.Item value="toc">
<Accordion.Header>
<Accordion.Trigger className="flex h-12 w-full items-center justify-between text-sans-md text-default hover:bg-hover px-5 600:px-10 [&>svg]:data-[state=open]:rotate-90">
<Accordion.Trigger className="flex h-12 w-full items-center justify-between text-sans-md text-default hover:bg-hover px-[--container-px] [&>svg]:data-[state=open]:rotate-90">
Table of Contents{' '}
<DirectionRightIcon className="transition-all text-tertiary" />
</Accordion.Trigger>
</Accordion.Header>

<Accordion.Content className="animated-accordion hydrated max-h-[60vh] overflow-y-scroll w-full border-t border-secondary px-5 600:px-10">
<Accordion.Content className="animated-accordion hydrated max-h-[60vh] overflow-y-scroll w-full border-t border-secondary px-[--container-px]">
<div className="py-4">{renderToc(toc)}</div>
</Accordion.Content>
</Accordion.Item>
Expand Down
Loading