Add padding to TOC page group items (#3777)

This commit is contained in:
Zeno Kapitein
2025-11-03 09:56:39 +01:00
committed by GitHub
parent 2c3066e3ae
commit 8606f222c9
4 changed files with 8 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": patch
---
Add padding to TOC page group items
-5
View File
@@ -172,11 +172,6 @@ const testCases: TestsCase[] = [
contentBaseURL: 'https://docs.realapp.link',
tests: [{ name: 'Home', url: '/' }],
},
{
name: 'docs.plaza.finance',
contentBaseURL: 'https://docs.plaza.finance',
tests: [{ name: 'Home', url: '/' }],
},
{
name: 'docs.publicai.io',
contentBaseURL: 'https://docs.publicai.io',
@@ -147,6 +147,7 @@ export function SpaceLayout(props: SpaceLayoutProps) {
className={tcls(
'hidden',
'pr-4',
'mt-2',
'lg:flex',
'grow-0',
'dark:shadow-light/1',
@@ -59,7 +59,7 @@ export async function TableOfContents(props: {
'lg:page-no-toc:[html[style*="--outline-top-offset"]_&]:top-(--outline-top-offset)!',
'lg:page-no-toc:[html[style*="--outline-height"]_&]:top-(--outline-height)!',
'pt-6',
'pt-4',
'pb-4',
'lg:sidebar-filled:pr-6',
'lg:page-no-toc:pr-0',
@@ -104,7 +104,7 @@ export async function TableOfContents(props: {
) : null}
<TOCScrollContainer // The scrollview inside the sidebar
className={tcls(
'flex grow flex-col p-2',
'flex grow flex-col p-2 pt-4',
customization.trademark.enabled && 'lg:pb-20',
'hide-scrollbar overflow-y-auto'
)}