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 b1cf009 commit ba0d061Copy full SHA for ba0d061
1 file changed
packages/react/src/blocks/Video/block.tsx
@@ -27,7 +27,7 @@ export const VideoPreview = (
27
: resolved.downloadUrl
28
}
29
controls={true}
30
- width={props.block.props.previewWidth}
+ width={props.block.props.previewWidth || undefined}
31
contentEditable={false}
32
draggable={false}
33
/>
@@ -45,7 +45,7 @@ export const VideoToExternalHTML = (
45
46
47
const video = props.block.props.showPreview ? (
48
- <video src={props.block.props.url} width={props.block.props.previewWidth} />
+ <video src={props.block.props.url} width={props.block.props.previewWidth || undefined} />
49
) : (
50
<a href={props.block.props.url}>
51
{props.block.props.name || props.block.props.url}
0 commit comments