Add margin to TOC items after page group (#3972)

This commit is contained in:
Zeno Kapitein
2026-02-03 16:10:32 +01:00
committed by GitHub
parent 70c2e90e4b
commit bf3ad28c7f
3 changed files with 3 additions and 3 deletions
@@ -12,7 +12,7 @@ export function PageDocumentItem(props: { page: ClientTOCPageDocument }) {
const { page } = props;
return (
<li className="flex flex-col">
<li className="page-document-item flex flex-col [.page-group-item+&]:mt-4">
<ToggleableLinkItem
href={page.href ?? '#'}
pathnames={page.pathnames}
@@ -11,7 +11,7 @@ export function PageGroupItem(props: { page: ClientTOCPageGroup; isFirst?: boole
const { page, isFirst } = props;
return (
<li className="flex flex-col">
<li className="page-group-item flex flex-col">
<div
className={tcls(
'-top-4 sticky z-1 flex items-center gap-3 px-3',
@@ -15,7 +15,7 @@ export function PageLinkItem(props: { page: ClientTOCPageLink }) {
const isExternal = page.target.kind === 'url';
return (
<li className={tcls('flex', 'flex-col')}>
<li className="page-link-item flex flex-col [.page-group-item+&]:mt-4">
<Link
href={page.href ?? '#'}
classNames={['ToggleableLinkItemStyles']}