mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 22:53:02 +00:00
Merge pull request #2981 from penpot/alotor-small-fixes-flex
🐛 Fix problem when moving absolute positioned element
This commit is contained in:
@@ -643,7 +643,9 @@
|
||||
(let [objects (wsh/lookup-page-objects state)
|
||||
selected (wsh/lookup-selected state {:omit-blocked? true})
|
||||
selected-shapes (->> selected (map (d/getf objects)))]
|
||||
(if (every? (partial ctl/layout-immediate-child? objects) selected-shapes)
|
||||
(if (every? #(and (ctl/layout-immediate-child? objects %)
|
||||
(not (ctl/layout-absolute? %)))
|
||||
selected-shapes)
|
||||
(rx/of (reorder-selected-layout-child direction))
|
||||
(rx/of (nudge-selected-shapes direction shift?)))))))
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@
|
||||
|
||||
[:div.element-set
|
||||
[:div.element-set-title
|
||||
[:span (if is-layout-container?
|
||||
[:span (if (and is-layout-container? (not is-layout-child?))
|
||||
"Flex board"
|
||||
"Flex element")]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user