mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 22:21:38 +02:00
🐛 Fix problem with text displacement in Safari
This commit is contained in:
parent
6e36f66dde
commit
5aa68c7052
3 changed files with 25 additions and 3 deletions
|
@ -51,8 +51,8 @@
|
|||
[:> :g group-props
|
||||
(for [[index data] (d/enumerate position-data)]
|
||||
(let [props (-> #js {:x (mth/round (:x data))
|
||||
:y (mth/round (:y data))
|
||||
:dominantBaseline "ideographic"
|
||||
:y (mth/round (- (:y data) (:height data)))
|
||||
:alignmentBaseline "text-before-edge"
|
||||
:style (-> #js {:fontFamily (:font-family data)
|
||||
:fontSize (:font-size data)
|
||||
:fontWeight (:font-weight data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue