Skip to content

Commit 6c989d4

Browse files
feat: update custom preview dimension width to dynamic value
1 parent b4c727e commit 6c989d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/demo/src/components/PreviewDimension.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const PreviewDimension: PluginComponent = (props) => {
3030
const handleClickCustom = () => {
3131
actions.setPreviewDimension({
3232
tag: 'custom',
33-
width: 1234,
33+
width: width,
3434
})
3535
}
3636

0 commit comments

Comments
 (0)