Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9e669f1
Add SideSheet component, refactor TOC and AIChat to use it
zenoachtig Dec 2, 2025
0d44191
Fix trademark & other visual bugs
zenoachtig Dec 2, 2025
f53e042
Naming and docs
zenoachtig Dec 2, 2025
e05f262
Get ready for supporting side sections list
zenoachtig Dec 2, 2025
a7b80c3
Small fixes
zenoachtig Dec 2, 2025
b9f9623
Fix scroll gutter
zenoachtig Dec 2, 2025
555a1da
Changeset
zenoachtig Dec 2, 2025
fb49a27
Layout tweaks
zenoachtig Dec 2, 2025
0a7979e
More layout fixes
zenoachtig Dec 2, 2025
72a0671
Layout
zenoachtig Dec 2, 2025
f78e9ca
Merge branch 'main' into zeno/rnd-7450-mobile-toc-chat-layout
zenoachtig Dec 4, 2025
8436352
Make sidesheet work well in docs embed
zenoachtig Dec 4, 2025
c895672
Update Header.tsx
zenoachtig Dec 4, 2025
e329b41
Merge branch 'main' into zeno/rnd-7450-mobile-toc-chat-layout
zenoachtig Dec 5, 2025
e372dae
Merge branch 'main' into zeno/rnd-7450-mobile-toc-chat-layout
zenoachtig Dec 11, 2025
ec0b607
Update AnnouncementBanner.tsx
zenoachtig Dec 11, 2025
9281b5e
Update SideSheet.tsx
zenoachtig Dec 11, 2025
dcd0355
Update TOC to use normal scrollcontainer
zenoachtig Dec 11, 2025
2f6ea5b
Merge branch 'main' into zeno/rnd-7450-mobile-toc-chat-layout
zenoachtig Dec 11, 2025
8a887fd
Fix tests
zenoachtig Dec 11, 2025
4cdab37
Rework table of contents to accommodate faded edges
zenoachtig Dec 11, 2025
43e8dec
Add margin to first document item
zenoachtig Dec 11, 2025
5347917
Spacing
zenoachtig Dec 11, 2025
aa86711
More spacing
zenoachtig Dec 11, 2025
8ee84f1
Update SpaceLayout.tsx
zenoachtig Dec 12, 2025
c716df3
Merge branch 'main' into zeno/rnd-7450-mobile-toc-chat-layout
zenoachtig Dec 16, 2025
365f60d
First try
zenoachtig Dec 17, 2025
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
Prev Previous commit
Next Next commit
Fix trademark & other visual bugs
  • Loading branch information
zenoachtig committed Dec 2, 2025
commit 0d4419166694b1f500d59d982003769dd7e1f149
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export function PageDocumentItem(props: { page: ClientTOCPageDocument }) {
'my-2',
'border-tint-subtle',
'sidebar-list-default:border-l',
'sidebar-list-line:border-l'
'sidebar-list-line:border-l',
'break-anywhere'
)}
/>
) : null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function TableOfContents(props: {
'grow-0',
'shrink-0',

'max-w-72',
'w-72',
'basis-72',
'lg:page-no-toc:basis-56',

Expand Down Expand Up @@ -109,14 +109,13 @@ export async function TableOfContents(props: {
<TOCScrollContainer // The scrollview inside the sidebar
className={tcls(
'flex grow flex-col p-2 pt-4',
customization.trademark.enabled && 'lg:pb-20',
'hide-scrollbar overflow-y-auto'
)}
>
<PagesList
pages={pages}
isRoot={true}
style="page-no-toc:hidden border-tint-subtle sidebar-list-line:border-l"
style="mb-5 page-no-toc:hidden grow border-tint-subtle sidebar-list-line:border-l"
/>
{customization.trademark.enabled ? (
<Trademark
Expand Down
31 changes: 5 additions & 26 deletions packages/gitbook/src/components/TableOfContents/Trademark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@ export function Trademark(props: {
return (
<div
className={tcls(
'relative',
'sticky',
'z-2',
'lg:absolute',

'left-0',
'right-2',
'bottom-0',
'inset-x-0',
'-bottom-2',
'-mb-2',

'pointer-events-none',
'sidebar-filled:pl-2',
'sidebar-filled:pb-2',
'sidebar-filled:page-no-toc:p-0',

'bg-tint-base',
'sidebar-filled:bg-tint-subtle',
Expand All @@ -38,24 +34,7 @@ export function Trademark(props: {

'rounded-lg',
'straight-corners:rounded-none',
'circular-corners:rounded-2xl',

'before:hidden',
'lg:before:block',
'before:content-[""]',
'before:absolute',
'before:inset-x-0',
'before:bottom-full',
'before:h-8',
'before:bg-linear-to-b',
'before:from-transparent',
'before:to-tint-base',
'sidebar-filled:before:to-tint-subtle',
'theme-muted:before:to-tint-subtle',
'[html.sidebar-filled.theme-bold.tint_&]:before:to-tint-subtle',
'[html.sidebar-filled.theme-muted_&]:before:to-tint-base',
'[html.sidebar-filled.theme-bold.tint_&]:before:to-tint-base',
'page-no-toc:before:to-transparent!'
'circular-corners:rounded-2xl'
)}
>
<TrademarkLink {...props} />
Expand Down
Loading