Skip to content

Commit

Permalink
Merge pull request #586 from wustep/master
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit authored Nov 18, 2024
2 parents 9996335 + f288210 commit 154c816
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react-notion-x/src/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ export function Block(props: BlockProps) {
blockId
)}
>
<PageIcon block={block} />
<PageIcon block={block} hideDefaultIcon={true} />

<div className='notion-callout-text'>
<Text value={block.properties?.title} block={block} />
Expand Down Expand Up @@ -838,6 +838,4 @@ export function Block(props: BlockProps) {

return <div />
}

return null
}
5 changes: 5 additions & 0 deletions packages/react-notion-x/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1199,6 +1199,11 @@ svg.notion-page-icon {
width: 100%;
}

.notion-callout-text > *:first-child {
margin-top: 0;
padding-top: 0;
}

.notion-toggle {
width: 100%;
padding: 3px 2px;
Expand Down

0 comments on commit 154c816

Please sign in to comment.