mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
🐛 Fix a mini bug
This commit is contained in:
parent
a2abe6d882
commit
a8d5cdc29f
2 changed files with 5 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
|||
fill-values (get-multi children fill-attrs)
|
||||
stroke-values (get-multi children stroke-attrs)]
|
||||
[:*
|
||||
[:& measures-menu {:ids (:id shape)
|
||||
[:& measures-menu {:ids [(:id shape)]
|
||||
:type type
|
||||
:values measure-values}]
|
||||
[:& fill-menu {:ids child-ids
|
||||
|
|
|
@ -16,6 +16,10 @@
|
|||
|
||||
(defn get-multi
|
||||
[shapes attrs]
|
||||
;; Extract some attributes of a list of shapes.
|
||||
;; For each attribute, if the value is the same in all shapes,
|
||||
;; wll take this value. If there is any shape that is different,
|
||||
;; the value of the attribute will be the keyword :multiple.
|
||||
(let [combine-value #(if (= %1 %2) %1 :multiple)
|
||||
|
||||
combine-values (fn [attrs shape values]
|
||||
|
|
Loading…
Reference in a new issue