From 6f90d0caa5f9d3cd4ea4898a68099492bc011554 Mon Sep 17 00:00:00 2001 From: Taken Date: Thu, 4 Sep 2025 20:14:12 +0200 Subject: [PATCH] Fixed generic progress --- .../[ign]/_components/GenericProgress.tsx | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/src/app/(stats)/player/[ign]/_components/GenericProgress.tsx b/src/app/(stats)/player/[ign]/_components/GenericProgress.tsx index 0eb1480..84124b4 100644 --- a/src/app/(stats)/player/[ign]/_components/GenericProgress.tsx +++ b/src/app/(stats)/player/[ign]/_components/GenericProgress.tsx @@ -46,18 +46,20 @@ export default function GenericProgress({ percent, tooltipId, tooltipContent, cl >
100 ? "rounded-r-md" : undefined, className)} style={{ - width: `${percent}%`, + width: `${percent > 100 ? 100 : percent}%`, background: "repeating-linear-gradient(to right,#f55,#fa0,#ff5,#5f5,#5ff,#f5f,#a0a,#f55 16rem)" }} >
-
-
+ {percent < 100 && ( +
+
+ )} @@ -73,15 +75,17 @@ export default function GenericProgress({ percent, tooltipId, tooltipContent, cl >
-
-
100 ? "rounded-r-md" : undefined, className)} + style={{ width: `${percent > 100 ? 100 : percent}%` }} >
+ {percent < 100 && ( +
+
+ )}