From dda46c108643d9f668c24995702499f4dfd48556 Mon Sep 17 00:00:00 2001 From: Claire Chabas Date: Tue, 18 Mar 2025 19:02:55 +0100 Subject: [PATCH] Update --- packages/gitbook/src/components/DocumentView/List.tsx | 3 +-- packages/gitbook/src/components/PageBody/PageBody.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/gitbook/src/components/DocumentView/List.tsx b/packages/gitbook/src/components/DocumentView/List.tsx index a4de0fd50..7464b1da8 100644 --- a/packages/gitbook/src/components/DocumentView/List.tsx +++ b/packages/gitbook/src/components/DocumentView/List.tsx @@ -21,8 +21,7 @@ export function List( tag={getListTag(block.type)} nodes={block.nodes} ancestorBlocks={[...ancestorBlocks, block]} - // `-mt-4` because we apply a `mt-5` to all blocks but we only want a margin top of 6px for lists - style={[style, 'min-w-0 space-y-2 -mt-4']} + style={['min-w-0 space-y-2', style]} /> ); } diff --git a/packages/gitbook/src/components/PageBody/PageBody.tsx b/packages/gitbook/src/components/PageBody/PageBody.tsx index 84213777a..15708943e 100644 --- a/packages/gitbook/src/components/PageBody/PageBody.tsx +++ b/packages/gitbook/src/components/PageBody/PageBody.tsx @@ -72,7 +72,7 @@ export function PageBody(props: { > *+*]:mt-5', 'grid']} + style={['[&>*+*]:mt-5','[&>ul+*]:mt-1', '[&>ol+*]:mt-1', 'grid']} blockStyle={['page-api-block:ml-0']} context={{ mode: 'default',