mirror of
https://github.com/penpot/penpot.git
synced 2025-03-18 10:41:29 -05:00
🐛 Fix display of colorpalette
This commit is contained in:
parent
9bd9011eca
commit
9fe2c557fe
1 changed files with 11 additions and 11 deletions
|
@ -88,12 +88,12 @@
|
|||
[:div.btn-palette.create i/close]]]
|
||||
|
||||
[:span.left-arrow {}
|
||||
(if (> (:position @local) 0)
|
||||
{:on-click #(swap! local update :position dec)}
|
||||
{:class :disabled})
|
||||
;;(if (> (:position @local) 0)
|
||||
;; {:on-click #(swap! local update :position dec)}
|
||||
;; {:class :disabled})
|
||||
;; FIXME Objects are not valid as a React child (found: :on-click).
|
||||
;;(when (> offset 0)
|
||||
;; {:on-click #(swap! local update :offset (fnil dec 1))})
|
||||
(when (> offset 0)
|
||||
{:on-click #(swap! local update :offset (fnil dec 1))})
|
||||
i/arrow-slide]
|
||||
|
||||
[:div.color-palette-content {:ref "container"}
|
||||
|
@ -104,13 +104,13 @@
|
|||
(mx/with-key color)))]]
|
||||
|
||||
[:span.right-arrow
|
||||
(if (< (* (+ 1 (:position @local)) 10) (count (:colors selected-coll)))
|
||||
{:on-click #(swap! local update :position inc)}
|
||||
{:class :disabled})
|
||||
;;(if (< (* (+ 1 (:position @local)) 10) (count (:colors selected-coll)))
|
||||
;; {:on-click #(swap! local update :position inc)}
|
||||
;; {:class :disabled})
|
||||
;; FIXME Objects are not valid as a React child (found: :on-click).
|
||||
;;(if (< offset invisible)
|
||||
;; {:on-click #(swap! local update :offset (fnil inc 0))}
|
||||
;; {})
|
||||
(if (< offset invisible)
|
||||
{:on-click #(swap! local update :offset (fnil inc 0))}
|
||||
{})
|
||||
i/arrow-slide]
|
||||
[:span.close-palette {:on-click close}
|
||||
i/close]])))
|
||||
|
|
Loading…
Add table
Reference in a new issue