mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 04:49:03 -05:00
Merge tag '1.16.0-beta-hotfix-5'
This commit is contained in:
commit
b681e40af0
4 changed files with 9 additions and 3 deletions
|
@ -8,6 +8,7 @@
|
||||||
- Fix firefox changing layer color type is not applied [Taiga #4292](https://tree.taiga.io/project/penpot/issue/4292)
|
- Fix firefox changing layer color type is not applied [Taiga #4292](https://tree.taiga.io/project/penpot/issue/4292)
|
||||||
- Fix justify alignes text left [Taiga #4322](https://tree.taiga.io/project/penpot/issue/4322)
|
- Fix justify alignes text left [Taiga #4322](https://tree.taiga.io/project/penpot/issue/4322)
|
||||||
- Fix text out of borders with "auto width" and center align [Taiga #4308](https://tree.taiga.io/project/penpot/issue/4308)
|
- Fix text out of borders with "auto width" and center align [Taiga #4308](https://tree.taiga.io/project/penpot/issue/4308)
|
||||||
|
- Fix auto-width for texts can make text appear stretched [Github #2482](https://github.com/penpot/penpot/issues/2482)
|
||||||
|
|
||||||
## 1.16.0-beta
|
## 1.16.0-beta
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,8 @@
|
||||||
"Adjust modifiers so they adjust to the pixel grid"
|
"Adjust modifiers so they adjust to the pixel grid"
|
||||||
[modifiers shape]
|
[modifiers shape]
|
||||||
|
|
||||||
(if (some? (:resize-transform modifiers))
|
(if (and (some? (:resize-transform modifiers))
|
||||||
|
(not (gmt/unit? (:resize-transform modifiers))))
|
||||||
;; If we're working with a rotation we don't handle pixel precision because
|
;; If we're working with a rotation we don't handle pixel precision because
|
||||||
;; the transformation won't have the precision anyway
|
;; the transformation won't have the precision anyway
|
||||||
modifiers
|
modifiers
|
||||||
|
@ -243,7 +244,10 @@
|
||||||
|
|
||||||
(let [set-modifiers
|
(let [set-modifiers
|
||||||
(fn [modif-tree id]
|
(fn [modif-tree id]
|
||||||
(assoc modif-tree id {:modifiers (get-modifier (get objects id))}))
|
(let [shape (get objects id)
|
||||||
|
modifiers (cond-> (get-modifier shape) snap-pixel? (set-pixel-precision shape))]
|
||||||
|
(-> modif-tree
|
||||||
|
(assoc id {:modifiers modifiers}))))
|
||||||
|
|
||||||
modif-tree (reduce set-modifiers {} ids)
|
modif-tree (reduce set-modifiers {} ids)
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 659 KiB After Width: | Height: | Size: 194 KiB |
|
@ -106,7 +106,8 @@
|
||||||
:textDecoration (:text-decoration data)
|
:textDecoration (:text-decoration data)
|
||||||
:letterSpacing (:letter-spacing data)
|
:letterSpacing (:letter-spacing data)
|
||||||
:fontStyle (:font-style data)
|
:fontStyle (:font-style data)
|
||||||
:direction (:direction data)}
|
:direction (:direction data)
|
||||||
|
:whiteSpace "pre"}
|
||||||
(obj/set! "fill" (str "url(#fill-" index "-" render-id ")")))})
|
(obj/set! "fill" (str "url(#fill-" index "-" render-id ")")))})
|
||||||
shape (assoc shape :fills (:fills data))]
|
shape (assoc shape :fills (:fills data))]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue