From f59301a3d6a7a42cc321ea41d9aeff474f46fb9e Mon Sep 17 00:00:00 2001 From: Aitor Moreno Date: Wed, 29 Apr 2026 09:51:47 +0200 Subject: [PATCH] :bug: Fix text editor v2 with 0 width --- frontend/src/app/main/ui/workspace/shapes/text/v2_editor.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.