We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f648da1 commit ddd3530Copy full SHA for ddd3530
src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/EmbedBlock.tsx
@@ -31,7 +31,7 @@ export const iframePropSchema: PropSchema & {
31
caption: { default: '' },
32
name: { default: '' },
33
showPreview: { default: true },
34
- previewWidth: { type: 'number', default: undefined },
+ previewWidth: { default: 500 },
35
};
36
37
export const iframeBlockConfig = {
@@ -92,9 +92,7 @@ export const IFrameViewer = (
92
ref={containerRef}
93
style={{
94
position: 'relative',
95
- padding: '10px',
96
width: '100%',
97
- background: '#ff0000',
98
paddingTop: `${100 / aspectRatio}%`, // padding-top sets height relative to width
99
}}
100
>
0 commit comments