mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 03:11:41 +02:00
🎉 Add text-direction option on for text shape.
This commit is contained in:
parent
a988292253
commit
422f4ee6c2
8 changed files with 61 additions and 14 deletions
|
@ -58,8 +58,9 @@
|
|||
(let [node (obj/get props "node")
|
||||
shape (obj/get props "shape")
|
||||
children (obj/get props "children")
|
||||
style (sts/generate-paragraph-styles shape node)]
|
||||
[:p.paragraph {:style style :dir "auto"} children]))
|
||||
style (sts/generate-paragraph-styles shape node)
|
||||
dir (:text-direction node "auto")]
|
||||
[:p.paragraph {:style style :dir dir} children]))
|
||||
|
||||
;; -- Text nodes
|
||||
(mf/defc render-node
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue