Skip to content

Commit 8606f22

Browse files
authored
Add padding to TOC page group items (#3777)
1 parent 2c3066e commit 8606f22

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.changeset/slow-numbers-dig.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Add padding to TOC page group items

packages/gitbook/e2e/customers.spec.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,6 @@ const testCases: TestsCase[] = [
172172
contentBaseURL: 'https://docs.realapp.link',
173173
tests: [{ name: 'Home', url: '/' }],
174174
},
175-
{
176-
name: 'docs.plaza.finance',
177-
contentBaseURL: 'https://docs.plaza.finance',
178-
tests: [{ name: 'Home', url: '/' }],
179-
},
180175
{
181176
name: 'docs.publicai.io',
182177
contentBaseURL: 'https://docs.publicai.io',

packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export function SpaceLayout(props: SpaceLayoutProps) {
147147
className={tcls(
148148
'hidden',
149149
'pr-4',
150+
'mt-2',
150151
'lg:flex',
151152
'grow-0',
152153
'dark:shadow-light/1',

packages/gitbook/src/components/TableOfContents/TableOfContents.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export async function TableOfContents(props: {
5959
'lg:page-no-toc:[html[style*="--outline-top-offset"]_&]:top-(--outline-top-offset)!',
6060
'lg:page-no-toc:[html[style*="--outline-height"]_&]:top-(--outline-height)!',
6161

62-
'pt-6',
62+
'pt-4',
6363
'pb-4',
6464
'lg:sidebar-filled:pr-6',
6565
'lg:page-no-toc:pr-0',
@@ -104,7 +104,7 @@ export async function TableOfContents(props: {
104104
) : null}
105105
<TOCScrollContainer // The scrollview inside the sidebar
106106
className={tcls(
107-
'flex grow flex-col p-2',
107+
'flex grow flex-col p-2 pt-4',
108108
customization.trademark.enabled && 'lg:pb-20',
109109
'hide-scrollbar overflow-y-auto'
110110
)}

0 commit comments

Comments
 (0)