File tree Expand file tree Collapse file tree 3 files changed +9
-30
lines changed
packages/gitbook/src/components/TableOfContents Expand file tree Collapse file tree 3 files changed +9
-30
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ export function PageDocumentItem(props: { page: ClientTOCPageDocument }) {
3232 'my-2' ,
3333 'border-tint-subtle' ,
3434 'sidebar-list-default:border-l' ,
35- 'sidebar-list-line:border-l'
35+ 'sidebar-list-line:border-l' ,
36+ 'break-anywhere'
3637 ) }
3738 />
3839 ) : null
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export async function TableOfContents(props: {
3939 'grow-0' ,
4040 'shrink-0' ,
4141
42- 'max- w-72' ,
42+ 'w-72' ,
4343 'basis-72' ,
4444 'lg:page-no-toc:basis-56' ,
4545
@@ -109,14 +109,13 @@ export async function TableOfContents(props: {
109109 < TOCScrollContainer // The scrollview inside the sidebar
110110 className = { tcls (
111111 'flex grow flex-col p-2 pt-4' ,
112- customization . trademark . enabled && 'lg:pb-20' ,
113112 'hide-scrollbar overflow-y-auto'
114113 ) }
115114 >
116115 < PagesList
117116 pages = { pages }
118117 isRoot = { true }
119- style = "page-no-toc:hidden border-tint-subtle sidebar-list-line:border-l"
118+ style = "mb-5 page-no-toc:hidden grow border-tint-subtle sidebar-list-line:border-l"
120119 />
121120 { customization . trademark . enabled ? (
122121 < Trademark
Original file line number Diff line number Diff line change @@ -17,18 +17,14 @@ export function Trademark(props: {
1717 return (
1818 < div
1919 className = { tcls (
20- 'relative ' ,
20+ 'sticky ' ,
2121 'z-2' ,
22- 'lg:absolute' ,
2322
24- 'left -0' ,
25- 'right -2' ,
26- 'bottom-0 ' ,
23+ 'inset-x -0' ,
24+ '-bottom -2' ,
25+ '-mb-2 ' ,
2726
2827 'pointer-events-none' ,
29- 'sidebar-filled:pl-2' ,
30- 'sidebar-filled:pb-2' ,
31- 'sidebar-filled:page-no-toc:p-0' ,
3228
3329 'bg-tint-base' ,
3430 'sidebar-filled:bg-tint-subtle' ,
@@ -38,24 +34,7 @@ export function Trademark(props: {
3834
3935 'rounded-lg' ,
4036 'straight-corners:rounded-none' ,
41- 'circular-corners:rounded-2xl' ,
42-
43- 'before:hidden' ,
44- 'lg:before:block' ,
45- 'before:content-[""]' ,
46- 'before:absolute' ,
47- 'before:inset-x-0' ,
48- 'before:bottom-full' ,
49- 'before:h-8' ,
50- 'before:bg-linear-to-b' ,
51- 'before:from-transparent' ,
52- 'before:to-tint-base' ,
53- 'sidebar-filled:before:to-tint-subtle' ,
54- 'theme-muted:before:to-tint-subtle' ,
55- '[html.sidebar-filled.theme-bold.tint_&]:before:to-tint-subtle' ,
56- '[html.sidebar-filled.theme-muted_&]:before:to-tint-base' ,
57- '[html.sidebar-filled.theme-bold.tint_&]:before:to-tint-base' ,
58- 'page-no-toc:before:to-transparent!'
37+ 'circular-corners:rounded-2xl'
5938 ) }
6039 >
6140 < TrademarkLink { ...props } />
You can’t perform that action at this time.
0 commit comments