We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e00c87d commit 9ffc3b6Copy full SHA for 9ffc3b6
.changeset/red-lizards-work.md
@@ -0,0 +1,5 @@
1
+---
2
+'gitbook': patch
3
4
+
5
+Fix content overflowing out of its container in tabs
packages/gitbook/src/components/DocumentView/List.tsx
@@ -21,7 +21,7 @@ export function List(
21
tag={getListTag(block.type)}
22
nodes={block.nodes}
23
ancestorBlocks={[...ancestorBlocks, block]}
24
- style={['space-y-2', style]}
+ style={['min-w-0 space-y-2', style]}
25
/>
26
);
27
}
packages/gitbook/src/components/DocumentView/ListItem.tsx
@@ -41,7 +41,7 @@ export function ListItem(props: BlockProps<DocumentBlockListItem>) {
41
// Override the "mx-auto" class from UnwrappedBlocks
42
'mx-0'
43
)}
44
- style="flex flex-1 flex-col space-y-2"
+ style="flex min-w-0 flex-1 flex-col space-y-2"
45
46
47
0 commit comments