mirror of
https://github.com/penpot/penpot.git
synced 2025-01-26 08:29:42 -05:00
🐛 Fix number of color bullets shown on context menu
This commit is contained in:
parent
119b3e7884
commit
cbebf9a94c
1 changed files with 1 additions and 2 deletions
|
@ -126,11 +126,10 @@
|
||||||
(when (= selected id) i/tick)
|
(when (= selected id) i/tick)
|
||||||
[:div.library-name (str (:name library) " " (str/ffmt "(%)" (count colors)))]
|
[:div.library-name (str (:name library) " " (str/ffmt "(%)" (count colors)))]
|
||||||
[:div.color-sample
|
[:div.color-sample
|
||||||
(for [[i {:keys [color]}] (map-indexed vector colors)]
|
(for [[i {:keys [color]}] (map-indexed vector (take 7 colors))]
|
||||||
[:& cb/color-bullet {:key (dm/str "color-" i)
|
[:& cb/color-bullet {:key (dm/str "color-" i)
|
||||||
:color color}])]]))
|
:color color}])]]))
|
||||||
|
|
||||||
|
|
||||||
[:li.palette-library
|
[:li.palette-library
|
||||||
{:on-click on-select-palette
|
{:on-click on-select-palette
|
||||||
:data-palette "file"}
|
:data-palette "file"}
|
||||||
|
|
Loading…
Add table
Reference in a new issue