From cb7c0341d63ae73e01fb8248a419154889e88ccd Mon Sep 17 00:00:00 2001 From: Mnigos Date: Thu, 5 Dec 2024 15:27:12 +0100 Subject: [PATCH] fix(components/items/card/top-item): item name and progress bar width --- app/components/common/progress-with-value-label.tsx | 4 +++- app/components/items/cards/item-top-card.tsx | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/components/common/progress-with-value-label.tsx b/app/components/common/progress-with-value-label.tsx index 257e9f2d..41b9dc92 100644 --- a/app/components/common/progress-with-value-label.tsx +++ b/app/components/common/progress-with-value-label.tsx @@ -11,6 +11,7 @@ namespace ProgressWithValueLabel { max: number label: string animate?: boolean + className?: string }> } @@ -19,6 +20,7 @@ function ProgressWithValueLabel({ max, label, animate = false, + className, }: ProgressWithValueLabel.Props) { const defaultProgressValue = (value / max) * 100 @@ -34,7 +36,7 @@ function ProgressWithValueLabel({ }, [value, max, animate, defaultProgressValue]) return ( -
+
{artists && } @@ -91,7 +91,7 @@ function ItemTopCard({ {position && } {genres && genres.length > 0 && ( -
+
{genres.slice(0, 3).map((genre, index) => ( ))} @@ -108,6 +108,7 @@ function ItemTopCard({ value={plays} max={maxPlays} label={`${plays} ${plays > 1 ? 'plays' : 'play'}`} + className="max-w-[350px]" animate /> )}