Skip to content

Commit 68d910c

Browse files
authored
fix createCapture preview clipping (#1289)
1 parent 5a2a61d commit 68d910c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/CodeEmbed/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const CodeEmbed = (props) => {
4545
}
4646

4747
// Quick hack to make room for DOM that gets added below the canvas by default
48-
const domMatch = /create(Button|Select|P|Div|Input|ColorPicker)/.exec(initialCode);
48+
const domMatch = /create(Button|Select|P|Div|Input|ColorPicker|Capture)/.exec(initialCode);
4949
if (domMatch && previewHeight) {
5050
previewHeight += 100;
5151
}

0 commit comments

Comments
 (0)