🎉 Add feature to set line-height to auto as 1.2

This commit is contained in:
Akshay Gupta 2023-05-04 00:48:25 +05:30 committed by Alejandro Alonso
parent 86b0e95458
commit 412ffe4b46
2 changed files with 5 additions and 0 deletions

View file

@ -374,6 +374,8 @@
line-height (or line-height "1.2")
letter-spacing (or letter-spacing "0")
line-height-nillable (if (= (str line-height) "1.2") false true)
handle-change
(fn [value attr]
(on-change {attr (str value)}))]
@ -387,8 +389,10 @@
{:min -200
:max 200
:step 0.1
:default "1.2"
:value (attr->string line-height)
:placeholder (tr "settings.multiple")
:nillable line-height-nillable
:on-change #(handle-change % :line-height)
:on-blur on-blur}]]