From 9216e3cafd86036189f23c3c04177204305eeef3 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 7 Dec 2023 07:51:13 +0100 Subject: [PATCH] :bug: Fix images for canvas background --- .../main/ui/workspace/sidebar/options/rows/color_row.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 230cc4cc24..34dde88610 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 @@ -42,7 +42,7 @@ (if (= v :multiple) nil v)) (mf/defc color-row - [{:keys [index color disable-gradient disable-opacity on-change + [{:keys [index color disable-gradient disable-opacity disable-image on-change on-reorder on-detach on-open on-close title on-remove disable-drag on-focus on-blur select-only select-on-focus]}] (let [new-css-system (mf/use-ctx ctx/new-css-system) @@ -130,7 +130,7 @@ handle-click-color (mf/use-fn - (mf/deps disable-gradient disable-opacity on-change on-close on-open) + (mf/deps disable-gradient disable-opacity disable-image on-change on-close on-open) (fn [color event] (let [color (cond multiple-colors? @@ -149,6 +149,7 @@ :y y :disable-gradient disable-gradient :disable-opacity disable-opacity + :disable-image disable-image ;; on-change second parameter means if the source is the color-picker :on-change #(on-change (merge uc/empty-color %) true) :on-close (fn [value opacity id file-id]