mirror of
https://github.com/penpot/penpot.git
synced 2026-04-29 21:28:20 +00:00
🐛 Fix text editor v2 with 0 width
This commit is contained in:
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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user