0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 10:38:13 -05:00

Merge pull request #2830 from penpot/alotor-polishing-10

Small bugfixes
This commit is contained in:
Alejandro 2023-01-24 15:53:16 +01:00 committed by GitHub
commit 43043e2dc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -609,6 +609,7 @@
objects (wsh/lookup-page-objects state page-id)
selected-ids (wsh/lookup-selected state)
selected-shapes (map (d/getf objects) selected-ids)
undo-id (js/Symbol)
move-shape
(fn [changes shape]
@ -631,7 +632,10 @@
(pcb/with-objects objects))
selected-shapes)]
(rx/of (dch/commit-changes changes))))))
(rx/of (dwu/start-undo-transaction undo-id)
(dch/commit-changes changes)
(ptk/data-event :layout/update selected-ids)
(dwu/commit-undo-transaction undo-id))))))
;; --- Change Shape Order (D&D Ordering)

View file

@ -283,7 +283,7 @@
(let [variant (d/seek #(= (:id %) font-variant-id) variants)]
(-> (generate-gfonts-url
{:family family
:variants [{:id variant}]})
:variants [variant]})
(http/fetch-text)))
(= :custom backend)