mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 14:38:27 +02:00
✨ Make last font used the default for next text box
This commit is contained in:
parent
26467187c4
commit
9ebafddac2
7 changed files with 31 additions and 14 deletions
|
@ -47,8 +47,8 @@
|
|||
text-align (:text-align data "start")
|
||||
grow-type (:grow-type shape)
|
||||
|
||||
base #js {:fontSize (str (:font-size txt/default-text-attrs) "px")
|
||||
:lineHeight (:line-height txt/default-text-attrs)
|
||||
base #js {:fontSize (str (:font-size data (:font-size txt/default-text-attrs)) "px")
|
||||
:lineHeight (:line-height data (:line-height txt/default-text-attrs))
|
||||
:margin "inherit"}]
|
||||
(cond-> base
|
||||
(some? line-height) (obj/set! "lineHeight" line-height)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue