mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 20:01:37 +02:00
🎉 Add feature to set line-height to auto as 1.2
This commit is contained in:
parent
86b0e95458
commit
412ffe4b46
2 changed files with 5 additions and 0 deletions
|
@ -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}]]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue