Skip to content

Commit b9f9623

Browse files
committed
Fix scroll gutter
1 parent a7b80c3 commit b9f9623

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/gitbook/src/components/RootLayout/CustomizationRootLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export async function CustomizationRootLayout(props: {
9191
suppressHydrationWarning
9292
lang={customization.internationalization.locale}
9393
className={tcls(
94-
'gutter-stable',
94+
'sheet-open:gutter-stable',
9595
customization.styling.corners && `${customization.styling.corners}-corners`,
9696
'theme' in customization.styling && `theme-${customization.styling.theme}`,
9797
tintColor ? ' tint' : 'no-tint',

packages/gitbook/tailwind.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ const config: Config = {
579579
addVariant('chat-open', 'body:has(.ai-chat[aria-expanded="true"]) &');
580580
addVariant(
581581
'sheet-open',
582-
'html:has(.side-sheet[aria-modal="true"][aria-expanded="true"]) &'
582+
'html:has(.side-sheet[aria-modal="true"][aria-expanded="true"]) &, &:has(.side-sheet[aria-modal="true"][aria-expanded="true"])'
583583
);
584584

585585
/**

0 commit comments

Comments
 (0)