Skip to content

Commit 7d81392

Browse files
committed
adapt styles to default and full width tabs
1 parent 73e57b5 commit 7d81392

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/gitbook/src/components/DocumentView/Tabs/DynamicTabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export function DynamicTabs(
145145
<HashLinkButton
146146
id={getTabButtonId(active.id)}
147147
block={block}
148-
className={tcls('absolute', 'left-6')}
148+
className={tcls('absolute', block.data?.fullWidth ? '-left-6' : 'left-6')}
149149
/>
150150

151151
<div

packages/gitbook/src/components/DocumentView/Tabs/Tabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function Tabs(props: BlockProps<DocumentBlockTabs>) {
2626
ancestorBlocks={[...ancestorBlocks, block, tab]}
2727
context={context}
2828
blockStyle={tcls('flip-heading-hash')}
29-
style={tcls('w-full', 'space-y-4')}
29+
style={tcls(block.data?.fullWidth ? 'w-full' : null, 'space-y-4')}
3030
/>
3131
);
3232
});

0 commit comments

Comments
 (0)