0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-06 12:01:19 -05:00

💄 Add minor cosmetic improvements on viewport hooks ns

This commit is contained in:
Andrey Antukh 2023-08-25 11:09:20 +02:00 committed by Andrés Moya
parent a754d5ae3b
commit a9d2cc227b

View file

@ -201,13 +201,12 @@
(mf/deps page-id objects show-measures?)
(fn [ids]
(let [selected (mf/ref-val selected-ref)
focus (mf/ref-val focus-ref)
mod? (mf/ref-val mod-ref)
focus (mf/ref-val focus-ref)
mod? (mf/ref-val mod-ref)
ids (into
(d/ordered-set)
(remove #(dm/get-in objects [% :blocked]))
(ctt/sort-z-index objects ids {:bottom-frames? mod?}))
ids (into (d/ordered-set)
(remove #(dm/get-in objects [% :blocked]))
(ctt/sort-z-index objects ids {:bottom-frames? mod?}))
grouped? (fn [id]
(and (cph/group-shape? objects id)