diff --git a/.changeset/updates-block-overflow.md b/.changeset/updates-block-overflow.md new file mode 100644 index 000000000..7b5861f66 --- /dev/null +++ b/.changeset/updates-block-overflow.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Fix wide content in Updates blocks overflowing into the page outline. diff --git a/packages/gitbook/src/components/DocumentView/Update.tsx b/packages/gitbook/src/components/DocumentView/Update.tsx index 6141fc98a..01aeb3de0 100644 --- a/packages/gitbook/src/components/DocumentView/Update.tsx +++ b/packages/gitbook/src/components/DocumentView/Update.tsx @@ -75,7 +75,7 @@ export function Update(props: BlockProps) { {...contextProps} nodes={block.nodes} ancestorBlocks={[...ancestorBlocks, block]} - style="flex flex-1 flex-col [&>*+*]:mt-5 [&>*:first-child]:!pt-0" + style="flex min-w-0 flex-1 flex-col [&>*+*]:mt-5 [&>*:first-child]:!pt-0" /> );