diff --git a/playgrounds/app/src/components/Editor.tsx b/playgrounds/app/src/components/Editor.tsx index bc0ed52..510f45a 100644 --- a/playgrounds/app/src/components/Editor.tsx +++ b/playgrounds/app/src/components/Editor.tsx @@ -229,6 +229,7 @@ export default function Editor(props: EditorProps) { maxContainerDimensions()?.height || 100, { layout: { + width: props.snippetWidth, yPadding: props.yPadding, xPadding: props.xPadding, }, @@ -434,6 +435,27 @@ export default function Editor(props: EditorProps) { Layout
+ { + props.setSnippetWidth(e[0]) + }} + > +
+ Width +
+ + px +
+
+ + + + +
+