Skip to content

Commit

Permalink
Merge branch 'main' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jul 11, 2024
2 parents ed0fc81 + a1a9355 commit cea5f4f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions site/src/common/blocks/RichTextBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const RichTextBlock = withPreview(

return (
<PreviewSkeleton title="RichText" type="rows" hasContent={hasRichTextBlockContent(data)}>
<Root $disableLastBottomSpacing={disableLastBottomSpacing}>{rendered}</Root>
{disableLastBottomSpacing ? <DisableLastBottomSpacing>{rendered}</DisableLastBottomSpacing> : rendered}
</PreviewSkeleton>
);
},
Expand All @@ -146,9 +146,8 @@ export const PageContentRichTextBlock = (props: RichTextBlockProps) => (
</PageLayout>
);

const Root = styled.div<{ $disableLastBottomSpacing?: boolean }>`
${({ theme, $disableLastBottomSpacing }) =>
$disableLastBottomSpacing &&
const DisableLastBottomSpacing = styled.div`
${({ theme }) =>
css`
> *:last-child {
margin-bottom: 0;
Expand Down

0 comments on commit cea5f4f

Please sign in to comment.