0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -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))
: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}