From 206fd68a92628093b0fb86435550774379e3a795 Mon Sep 17 00:00:00 2001 From: Simon Epskamp Date: Thu, 28 Nov 2024 20:27:10 +0100 Subject: [PATCH] :sparkles: Add path to color bullet title This way the title is more clear as the group name is included, and this more closely matches the display in the "assets" sidebar. Signed-off-by: Simon Epskamp --- frontend/src/app/main/ui/components/color_bullet.cljs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/ui/components/color_bullet.cljs b/frontend/src/app/main/ui/components/color_bullet.cljs index edcf7af521..eb1795427e 100644 --- a/frontend/src/app/main/ui/components/color_bullet.cljs +++ b/frontend/src/app/main/ui/components/color_bullet.cljs @@ -16,6 +16,8 @@ (defn- color-title [color-item] (let [name (:name color-item) + path (:path color-item) + path-and-name (if path (str path " / " name) name) gradient (:gradient color-item) image (:image color-item) color (:color color-item)] @@ -23,16 +25,16 @@ (if (some? name) (cond (some? color) - (str/ffmt "% (%)" name color) + (str/ffmt "% (%)" path-and-name color) (some? gradient) - (str/ffmt "% (%)" name (uc/gradient-type->string (:type gradient))) + (str/ffmt "% (%)" path-and-name (uc/gradient-type->string (:type gradient))) (some? image) - (str/ffmt "% (%)" name (tr "media.image")) + (str/ffmt "% (%)" path-and-name (tr "media.image")) :else - name) + path-and-name) (cond (some? color)