Skip to content

Commit 2f4576d

Browse files
committed
Fix callout spacing for icon-less callouts and new callouts
1 parent 9996335 commit 2f4576d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/react-notion-x/src/block.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ export function Block(props: BlockProps) {
592592
blockId
593593
)}
594594
>
595-
<PageIcon block={block} />
595+
<PageIcon block={block} hideDefaultIcon={true} />
596596

597597
<div className='notion-callout-text'>
598598
<Text value={block.properties?.title} block={block} />
@@ -839,5 +839,4 @@ export function Block(props: BlockProps) {
839839
return <div />
840840
}
841841

842-
return null
843842
}

packages/react-notion-x/src/styles.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,11 @@ svg.notion-page-icon {
11991199
width: 100%;
12001200
}
12011201

1202+
.notion-callout-text > *:first-child {
1203+
margin-top: 0;
1204+
padding-top: 0;
1205+
}
1206+
12021207
.notion-toggle {
12031208
width: 100%;
12041209
padding: 3px 2px;

0 commit comments

Comments
 (0)