This commit is contained in:
Claire Chabas
2025-03-18 19:02:55 +01:00
parent 0acc1c497b
commit dda46c1086
2 changed files with 2 additions and 3 deletions
@@ -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]}
/>
);
}
@@ -72,7 +72,7 @@ export function PageBody(props: {
>
<DocumentView
document={document}
style={['[&>*+*]:mt-5', 'grid']}
style={['[&>*+*]:mt-5','[&>ul+*]:mt-1', '[&>ol+*]:mt-1', 'grid']}
blockStyle={['page-api-block:ml-0']}
context={{
mode: 'default',