From 8a4fbf385c006b9645e16ee675bf56b49fe1e883 Mon Sep 17 00:00:00 2001 From: Xaviju Date: Fri, 13 Dec 2024 10:59:59 +0100 Subject: [PATCH] :bug: fix color-bullet props error --- frontend/src/app/main/ui/dashboard/grid.cljs | 2 +- .../src/app/main/ui/viewer/inspect/attributes/common.cljs | 4 ++-- .../src/app/main/ui/workspace/color_palette_ctx_menu.cljs | 6 +++--- .../src/app/main/ui/workspace/sidebar/assets/colors.cljs | 2 +- .../main/ui/workspace/sidebar/options/rows/color_row.cljs | 2 +- frontend/src/app/main/ui/workspace/tokens/sidebar.cljs | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/main/ui/dashboard/grid.cljs b/frontend/src/app/main/ui/dashboard/grid.cljs index 830d7caad..8bc7fb657 100644 --- a/frontend/src/app/main/ui/dashboard/grid.cljs +++ b/frontend/src/app/main/ui/dashboard/grid.cljs @@ -189,7 +189,7 @@ [:& bc/color-bullet {:color {:color (:color color) :id (:id color) :opacity (:opacity color)} - :mini? true}] + :mini true}] [:div {:class (stl/css :name-block)} [:span {:class (stl/css :color-name)} (:name color)] (when-not (= (:name color) default-name) diff --git a/frontend/src/app/main/ui/viewer/inspect/attributes/common.cljs b/frontend/src/app/main/ui/viewer/inspect/attributes/common.cljs index fcc2eb250..e7d48424a 100644 --- a/frontend/src/app/main/ui/viewer/inspect/attributes/common.cljs +++ b/frontend/src/app/main/ui/viewer/inspect/attributes/common.cljs @@ -70,7 +70,7 @@ [:div {:class (stl/css :bullet-wrapper) :style #js {"--bullet-size" "16px"}} [:& cb/color-bullet {:color color - :mini? true}]] + :mini true}]] [:div {:class (stl/css :format-wrapper)} [:div {:class (stl/css :image-format)} @@ -102,7 +102,7 @@ [:div {:class (stl/css :bullet-wrapper) :style #js {"--bullet-size" "16px"}} [:& cb/color-bullet {:color color - :mini? true}]] + :mini true}]] [:div {:class (stl/css :format-wrapper)} (when-not (and on-change-format (or (:gradient color) image)) diff --git a/frontend/src/app/main/ui/workspace/color_palette_ctx_menu.cljs b/frontend/src/app/main/ui/workspace/color_palette_ctx_menu.cljs index 9d9097d04..33f98effb 100644 --- a/frontend/src/app/main/ui/workspace/color_palette_ctx_menu.cljs +++ b/frontend/src/app/main/ui/workspace/color_palette_ctx_menu.cljs @@ -44,7 +44,7 @@ :style #js {"--bullet-size" "20px"}} (for [[i {:keys [color id gradient]}] (map-indexed vector (take 7 colors))] [:& cb/color-bullet {:key (dm/str "color-" i) - :mini? true + :mini true :color {:color color :id id :gradient gradient}}])]]])) [:li {:class (stl/css-case :file-library true @@ -68,7 +68,7 @@ :style #js {"--bullet-size" "20px"}} (for [[i color] (map-indexed vector (take 7 (vals file-colors)))] [:& cb/color-bullet {:key (dm/str "color-" i) - :mini? true + :mini true :color color}])]]] [:li {:class (stl/css :recent-colors true @@ -90,5 +90,5 @@ :style #js {"--bullet-size" "20px"}} (for [[idx color] (map-indexed vector (take 7 (reverse recent-colors)))] [:& cb/color-bullet {:key (str "color-" idx) - :mini? true + :mini true :color color}])]]]]])) diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets/colors.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets/colors.cljs index f3dfccfd8..0738bd690 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets/colors.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets/colors.cljs @@ -216,7 +216,7 @@ [:div {:class (stl/css :bullet-block)} [:& cb/color-bullet {:color color - :mini? true}]] + :mini true}]] (if ^boolean editing? [:input diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/rows/color_row.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/rows/color_row.cljs index f53360fc3..04dfdb89b 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/rows/color_row.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/rows/color_row.cljs @@ -212,7 +212,7 @@ (nil? color-name) (assoc :id nil :file-id nil)) - :mini? true + :mini true :on-click handle-click-color}]] (cond ;; Rendering a color with ID diff --git a/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs b/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs index 157900264..8fcbab432 100644 --- a/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs @@ -73,7 +73,7 @@ (wtt/resolved-value-hex theme-token) (wtt/resolved-value-hex token))] [:& color-bullet {:color color - :mini? true}]) + :mini true}]) name])) (mf/defc token-section-icon