Skip to content

Commit ddd3530

Browse files
ThomasMetzgerSimonClo
authored andcommitted
🐛 (frontend) embed-bloc: fixed initial size is undefined
1 parent f648da1 commit ddd3530

File tree

1 file changed

+1
-3
lines changed
  • src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks

1 file changed

+1
-3
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/EmbedBlock.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const iframePropSchema: PropSchema & {
3131
caption: { default: '' },
3232
name: { default: '' },
3333
showPreview: { default: true },
34-
previewWidth: { type: 'number', default: undefined },
34+
previewWidth: { default: 500 },
3535
};
3636

3737
export const iframeBlockConfig = {
@@ -92,9 +92,7 @@ export const IFrameViewer = (
9292
ref={containerRef}
9393
style={{
9494
position: 'relative',
95-
padding: '10px',
9695
width: '100%',
97-
background: '#ff0000',
9896
paddingTop: `${100 / aspectRatio}%`, // padding-top sets height relative to width
9997
}}
10098
>

0 commit comments

Comments
 (0)