Skip to content

Commit 9ffc3b6

Browse files
authored
Fix content overflowing out of their container in lists (#2939)
1 parent e00c87d commit 9ffc3b6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/red-lizards-work.md

+5
Original file line numberDiff line numberDiff line change
@@ -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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function List(
2121
tag={getListTag(block.type)}
2222
nodes={block.nodes}
2323
ancestorBlocks={[...ancestorBlocks, block]}
24-
style={['space-y-2', style]}
24+
style={['min-w-0 space-y-2', style]}
2525
/>
2626
);
2727
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function ListItem(props: BlockProps<DocumentBlockListItem>) {
4141
// Override the "mx-auto" class from UnwrappedBlocks
4242
'mx-0'
4343
)}
44-
style="flex flex-1 flex-col space-y-2"
44+
style="flex min-w-0 flex-1 flex-col space-y-2"
4545
/>
4646
);
4747

0 commit comments

Comments
 (0)