diff --git a/frontend/src/app/main/ui/workspace/shapes/text/v2_editor.cljs b/frontend/src/app/main/ui/workspace/shapes/text/v2_editor.cljs index 6e96297ebc..75f6d4c4d6 100644 --- a/frontend/src/app/main/ui/workspace/shapes/text/v2_editor.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/text/v2_editor.cljs @@ -425,8 +425,8 @@ (not render-wasm?) (obj/merge! - #js {"--editor-container-width" (dm/str width "px") - "--editor-container-height" (dm/str height "px")}) + #js {"--editor-container-width" (dm/str (max 1 width) "px") + "--editor-container-height" (dm/str (max 1 height) "px")}) ;; Transform is necessary when there is a text overflow and the vertical ;; aligment is center or bottom.