Skip to content

Commit 154c816

Browse files
Merge pull request #586 from wustep/master
2 parents 9996335 + f288210 commit 154c816

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

+1-3
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} />
@@ -838,6 +838,4 @@ export function Block(props: BlockProps) {
838838

839839
return <div />
840840
}
841-
842-
return null
843841
}

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

+5
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)