Skip to content

Commit 1cfefb9

Browse files
Merge pull request NotionX#412 from liqun98/fix-pdf-styling
2 parents fe0e2d9 + 8c9caca commit 1cfefb9

File tree

1 file changed

+1
-0
lines changed
  • packages/react-notion-x/src/components

1 file changed

+1
-0
lines changed

packages/react-notion-x/src/components/asset.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export const Asset: React.FC<{
155155
} else if (block.type === 'pdf') {
156156
style.overflow = 'auto'
157157
style.background = 'rgb(226, 226, 226)'
158+
style.display = 'block'
158159

159160
if (!style.padding) {
160161
style.padding = '8px 16px'

0 commit comments

Comments
 (0)