From cbebf9a94c125a3c0c879560c6aa5e5145f96ec4 Mon Sep 17 00:00:00 2001 From: Eva Date: Thu, 15 Jun 2023 11:51:25 +0200 Subject: [PATCH] :bug: Fix number of color bullets shown on context menu --- frontend/src/app/main/ui/workspace/colorpalette.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/colorpalette.cljs b/frontend/src/app/main/ui/workspace/colorpalette.cljs index dc384a1f0..cdc29cffd 100644 --- a/frontend/src/app/main/ui/workspace/colorpalette.cljs +++ b/frontend/src/app/main/ui/workspace/colorpalette.cljs @@ -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"}