From b322da5936b290d0d1ea1f11091aae7b019df292 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 19 Jun 2019 09:19:32 +0200 Subject: [PATCH] fix(frontend): adapt colorpalette to rumext changes --- frontend/src/uxbox/main/ui/workspace/colorpalette.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/uxbox/main/ui/workspace/colorpalette.cljs b/frontend/src/uxbox/main/ui/workspace/colorpalette.cljs index c1015ba494..487d80b33d 100644 --- a/frontend/src/uxbox/main/ui/workspace/colorpalette.cljs +++ b/frontend/src/uxbox/main/ui/workspace/colorpalette.cljs @@ -83,7 +83,7 @@ [:option {:key (str (:id collection)) :value (pr-str (:id collection))} (:name collection)])] - #_[:div.color-palette-buttons + [:div.color-palette-buttons [:div.btn-palette.edit.current i/pencil] [:div.btn-palette.create i/close]]] @@ -104,9 +104,9 @@ ;; FIXME Scroll on click does not work [:span.right-arrow - (if (< offset invisible) - {:on-click #(.scrollBy (dom/get-element "color-palette-inside") offset 0)} - {}) + {:on-click (fn [event] + (when (< offset invisible) + (.scrollBy (dom/get-element "color-palette-inside") offset 0)))} i/arrow-slide] [:span.close-palette {:on-click close}