mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 22:11:37 +02:00
💄 Add minor cosmetic improvements on viewport hooks ns
This commit is contained in:
parent
a754d5ae3b
commit
a9d2cc227b
1 changed files with 5 additions and 6 deletions
|
@ -201,13 +201,12 @@
|
||||||
(mf/deps page-id objects show-measures?)
|
(mf/deps page-id objects show-measures?)
|
||||||
(fn [ids]
|
(fn [ids]
|
||||||
(let [selected (mf/ref-val selected-ref)
|
(let [selected (mf/ref-val selected-ref)
|
||||||
focus (mf/ref-val focus-ref)
|
focus (mf/ref-val focus-ref)
|
||||||
mod? (mf/ref-val mod-ref)
|
mod? (mf/ref-val mod-ref)
|
||||||
|
|
||||||
ids (into
|
ids (into (d/ordered-set)
|
||||||
(d/ordered-set)
|
(remove #(dm/get-in objects [% :blocked]))
|
||||||
(remove #(dm/get-in objects [% :blocked]))
|
(ctt/sort-z-index objects ids {:bottom-frames? mod?}))
|
||||||
(ctt/sort-z-index objects ids {:bottom-frames? mod?}))
|
|
||||||
|
|
||||||
grouped? (fn [id]
|
grouped? (fn [id]
|
||||||
(and (cph/group-shape? objects id)
|
(and (cph/group-shape? objects id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue