From 07449443a01b49db0882ca3d1382bfd066ad53d0 Mon Sep 17 00:00:00 2001 From: Viktor Renkema <49148610+viktorrenkema@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:26:33 +0100 Subject: [PATCH] Fix rendering of Expandables within Update blocks (#3947) --- packages/gitbook/src/components/DocumentView/Update.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/gitbook/src/components/DocumentView/Update.tsx b/packages/gitbook/src/components/DocumentView/Update.tsx index dd5d9301d..9c67e574c 100644 --- a/packages/gitbook/src/components/DocumentView/Update.tsx +++ b/packages/gitbook/src/components/DocumentView/Update.tsx @@ -60,8 +60,7 @@ export function Update(props: BlockProps) { {...contextProps} nodes={block.nodes} ancestorBlocks={[...ancestorBlocks, block]} - // Remove padding-top from headings when they're the first child (similar to column-first-of-type pattern) - style="[&>*:first-child]:!pt-0 flex-1 space-y-4" + style="[&>*:first-child]:!pt-0 flex flex-1 flex-col [&>*+*]:mt-5" /> );