0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 15:51:37 -05:00

fix(frontend): adapt colorpalette to rumext changes

This commit is contained in:
Andrey Antukh 2019-06-19 09:19:32 +02:00
parent db4cdc27a3
commit b322da5936

View file

@ -83,7 +83,7 @@
[:option {:key (str (:id collection)) [:option {:key (str (:id collection))
:value (pr-str (:id collection))} :value (pr-str (:id collection))}
(:name collection)])] (:name collection)])]
#_[:div.color-palette-buttons [:div.color-palette-buttons
[:div.btn-palette.edit.current i/pencil] [:div.btn-palette.edit.current i/pencil]
[:div.btn-palette.create i/close]]] [:div.btn-palette.create i/close]]]
@ -104,9 +104,9 @@
;; FIXME Scroll on click does not work ;; FIXME Scroll on click does not work
[:span.right-arrow [:span.right-arrow
(if (< offset invisible) {:on-click (fn [event]
{:on-click #(.scrollBy (dom/get-element "color-palette-inside") offset 0)} (when (< offset invisible)
{}) (.scrollBy (dom/get-element "color-palette-inside") offset 0)))}
i/arrow-slide] i/arrow-slide]
[:span.close-palette {:on-click close} [:span.close-palette {:on-click close}