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:
commit
43043e2dc1
2 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue