From bd9a3671e5b30ab59557d0606eadd2c96340a85e Mon Sep 17 00:00:00 2001 From: Claire Chabas Date: Tue, 18 Mar 2025 18:08:28 +0100 Subject: [PATCH] Update lists margin top --- packages/gitbook/src/components/DocumentView/List.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gitbook/src/components/DocumentView/List.tsx b/packages/gitbook/src/components/DocumentView/List.tsx index 7464b1da8..748757b03 100644 --- a/packages/gitbook/src/components/DocumentView/List.tsx +++ b/packages/gitbook/src/components/DocumentView/List.tsx @@ -21,7 +21,8 @@ export function List( tag={getListTag(block.type)} nodes={block.nodes} ancestorBlocks={[...ancestorBlocks, block]} - style={['min-w-0 space-y-2', style]} + // `-mt-4` because we apply a `mt-5` to all blocks but we only want a margin top of 6px for lists + style={['min-w-0 space-y-2 -mt-4', style]} /> ); }