Skip to content

Commit

Permalink
Fix paragraph top margin in quote blocks (#2423)
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorelli authored Aug 9, 2024
1 parent 287df91 commit 3c07e65
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-beds-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gitbook': patch
---

Fix margin for paragraphs in quote blocks
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export async function Annotation(props: InlineProps<DocumentInlineAnnotation>) {
ancestorBlocks={[]}
context={context}
nodes={fragment.nodes}
style={['space-y-4']}
/>
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function Expandable(props: BlockProps<DocumentBlockExpandable>) {
document={document}
ancestorBlocks={[...ancestorBlocks, block]}
context={context}
style={['px-10', 'pb-5', 'space-y-3']}
style={['px-10', 'pb-5', 'space-y-4']}
/>
</details>
);
Expand Down
1 change: 1 addition & 0 deletions packages/gitbook/src/components/DocumentView/Quote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function Quote(props: BlockProps<DocumentBlockQuote>) {
'border-dark/2',
'dark:text-light/7',
'dark:border-light/2',
'space-y-4',
]}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/gitbook/src/components/DocumentView/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function Tabs(props: BlockProps<DocumentBlockTabs>) {
ancestorBlocks={[...ancestorBlocks, block, tab]}
context={context}
blockStyle={tcls('flip-heading-hash')}
style={tcls('w-full', 'space-y-6')}
style={tcls('w-full', 'space-y-4')}
/>
),
}));
Expand Down

0 comments on commit 3c07e65

Please sign in to comment.