0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

Merge pull request #3307 from penpot/eva-fix-color-context

🐛 Fix number of color bullets shown on context menu
This commit is contained in:
Alejandro 2023-06-15 12:17:30 +02:00 committed by GitHub
commit 1c1397a5d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,11 +126,10 @@
(when (= selected id) i/tick)
[:div.library-name (str (:name library) " " (str/ffmt "(%)" (count colors)))]
[: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)
:color color}])]]))
[:li.palette-library
{:on-click on-select-palette
:data-palette "file"}