mirror of
https://github.com/penpot/penpot.git
synced 2026-05-23 16:07:30 -04:00
🐛 Fix text editor v2 with 0 width
This commit is contained in:
committed by
Belén Albeza
parent
2aff116906
commit
f59301a3d6
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user