mirror of
https://github.com/penpot/penpot.git
synced 2025-04-05 19:41:27 -05:00
🐛 Fix multiple selection in layout container and items
This commit is contained in:
parent
c98635bca1
commit
a439fb65ce
2 changed files with 5 additions and 5 deletions
frontend/src/app/main/ui/workspace/sidebar/options
|
@ -38,10 +38,9 @@
|
|||
margins (if (nil? (:layout-item-margin values))
|
||||
{:m1 0 :m2 0 :m3 0 :m4 0}
|
||||
(:layout-item-margin values))
|
||||
rx (if (and (not (= :multiple (:layout-item-margin-type values)))
|
||||
(apply = (vals margins)))
|
||||
(:m1 margins)
|
||||
"--")]
|
||||
rx (if (or (= :multiple margins) (not (apply = (vals margins))))
|
||||
"--"
|
||||
(:m1 margins))]
|
||||
|
||||
[:div.margin-row
|
||||
[:div.margin-icons
|
||||
|
|
|
@ -288,6 +288,7 @@
|
|||
stroke-ids stroke-values
|
||||
text-ids text-values
|
||||
exports-ids exports-values
|
||||
layout-container-ids layout-container-values
|
||||
layout-item-ids layout-item-values]
|
||||
(mf/use-memo
|
||||
(mf/deps objects-no-measures)
|
||||
|
@ -311,7 +312,7 @@
|
|||
(when-not (empty? measure-ids)
|
||||
[:& measures-menu {:type type :all-types all-types :ids measure-ids :values measure-values :shape shapes}])
|
||||
|
||||
[:& layout-container-menu {:type type :ids [] :values []}]
|
||||
[:& layout-container-menu {:type type :ids layout-container-ids :values layout-container-values}]
|
||||
|
||||
(when is-layout-child?
|
||||
[:& layout-item-menu
|
||||
|
|
Loading…
Add table
Reference in a new issue