diff --git a/frontend/src/app/main/data/workspace/shape_layout.cljs b/frontend/src/app/main/data/workspace/shape_layout.cljs index 9035c8fef..d16e28850 100644 --- a/frontend/src/app/main/data/workspace/shape_layout.cljs +++ b/frontend/src/app/main/data/workspace/shape_layout.cljs @@ -155,10 +155,10 @@ single? (= (count selected-shapes) 1) has-group? (->> selected-shapes (d/seek cph/group-shape?)) is-group? (and single? has-group?) - has_component? (some true? (map ctc/instance-root? selected-shapes)) - is_component? (and single? has_component?)] + has-component? (some true? (map ctc/instance-root? selected-shapes)) + is-component? (and single? has-component?)] - (if (and (not is_component?) is-group?) + (if (and (not is-component?) is-group?) (let [new-shape-id (uuid/next) parent-id (:parent-id (first selected-shapes)) shapes-ids (:shapes (first selected-shapes)) diff --git a/frontend/src/app/main/ui/formats.cljs b/frontend/src/app/main/ui/formats.cljs index 8bbeca1f9..f972bda81 100644 --- a/frontend/src/app/main/ui/formats.cljs +++ b/frontend/src/app/main/ui/formats.cljs @@ -52,7 +52,7 @@ {:p1 p1} (= 4 (count (set values))) - {:p1 p1 :p2 p2 :p3 p3} + {:p1 p1 :p2 p2 :p3 p3 :p4 p4} (and (= p1 p3) (= p2 p4)) {:p1 p1 :p3 p3} diff --git a/frontend/src/app/main/ui/viewer/inspect/attributes/layout_flex.cljs b/frontend/src/app/main/ui/viewer/inspect/attributes/layout_flex.cljs index d7a89682e..1cc404df8 100644 --- a/frontend/src/app/main/ui/viewer/inspect/attributes/layout_flex.cljs +++ b/frontend/src/app/main/ui/viewer/inspect/attributes/layout_flex.cljs @@ -68,6 +68,7 @@ [{:keys [padding type]}] (let [values (fm/format-padding-margin-shorthand (vals padding))] [:div.attributes-value + {:title (str (str/join "px " (vals values)) "px")} (for [[k v] values] [:span.items {:key (str type "-" k "-" v)} v "px"])]))