Skip to content

Commit fb49a27

Browse files
committed
Layout tweaks
1 parent 555a1da commit fb49a27

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ export function SpaceLayout(props: SpaceLayoutProps) {
144144
<div
145145
className={tcls(
146146
'pr-4',
147-
'mt-2',
148147
'flex',
149148
withTopHeader ? 'lg:hidden' : '',
150149
'grow-0',

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ export async function TableOfContents(props: {
7373
'lg:page-no-toc:[html[style*="--outline-top-offset"]_&]:top-(--outline-top-offset)!',
7474
'lg:page-no-toc:[html[style*="--outline-height"]_&]:top-(--outline-height)!',
7575

76-
'pt-6',
77-
'pb-4',
76+
'py-6',
7877
'lg:sidebar-filled:pr-6',
7978
'lg:page-no-toc:pr-0',
8079
'max-lg:pl-8',
@@ -95,6 +94,7 @@ export async function TableOfContents(props: {
9594
'[html.sidebar-filled.theme-muted_&]:bg-tint-base',
9695
'[html.sidebar-filled.theme-bold.tint_&]:bg-tint-base',
9796
'[html.sidebar-filled.theme-gradient_&]:border',
97+
'max-lg:sidebar-filled:border',
9898
'page-no-toc:bg-transparent!',
9999
'page-no-toc:border-none!',
100100

@@ -107,7 +107,10 @@ export async function TableOfContents(props: {
107107
<div className="flex flex-col gap-4 px-5 empty:hidden">{innerHeader}</div>
108108
) : null}
109109
<TOCScrollContainer // The scrollview inside the sidebar
110-
className={tcls('flex grow flex-col p-2', 'hide-scrollbar overflow-y-auto')}
110+
className={tcls(
111+
'flex grow flex-col p-2 pt-4 ',
112+
'hide-scrollbar overflow-y-auto'
113+
)}
111114
>
112115
<PagesList
113116
pages={pages}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ export function Trademark(props: {
2020
'sticky',
2121
'z-2',
2222

23+
'mt-auto',
2324
'inset-x-0',
2425
'-bottom-2',
2526
'-mb-2',
2627
'sidebar-filled:pb-2',
28+
'page-no-toc:pb-0',
2729

2830
'pointer-events-none',
2931

@@ -32,6 +34,7 @@ export function Trademark(props: {
3234
'theme-muted:bg-tint-subtle',
3335
'[html.sidebar-filled.theme-muted_&]:bg-tint-base',
3436
'[html.sidebar-filled.theme-bold.tint_&]:bg-tint-base',
37+
'lg:page-no-toc:bg-transparent',
3538

3639
'rounded-lg',
3740
'straight-corners:rounded-none',
@@ -65,9 +68,6 @@ export function TrademarkLink(props: {
6568
href={url.toString()}
6669
className={tcls(
6770
'text-sm',
68-
// 'lg:max-xl:page-no-toc:text-xs',
69-
// 'lg:max-xl:page-no-toc:px-3',
70-
// 'lg:max-xl:page-no-toc:py-3',
7171
'font-semibold',
7272
'text-tint',
7373

packages/gitbook/src/components/primitives/SideSheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export function SideSheetScrim(props: { className?: ClassValue; onClick?: () =>
167167
}
168168
}}
169169
className={tcls(
170-
'fixed inset-0 z-40 items-start bg-tint-base/3 not-hydrated:opacity-0 starting:opacity-0 backdrop-blur-md starting:backdrop-blur-none transition-[opacity,display,backdrop-filter] transition-discrete duration-250 dark:bg-tint-base/9',
170+
'fixed inset-0 z-40 items-start bg-tint-base/3 not-hydrated:opacity-0 starting:opacity-0 backdrop-blur-md starting:backdrop-blur-none transition-[opacity,display,backdrop-filter] transition-discrete duration-250 dark:bg-tint-base/6',
171171
className
172172
)}
173173
/>

0 commit comments

Comments
 (0)