🐛 Fix text editor v2 with 0 width

This commit is contained in:
Aitor Moreno 2026-04-29 09:51:47 +02:00 committed by Belén Albeza
parent 2aff116906
commit f59301a3d6

View File

@ -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.