diff --git a/src/components/ui/TagDisplay.tsx b/src/components/ui/TagDisplay.tsx index b3eff64..2e7900e 100644 --- a/src/components/ui/TagDisplay.tsx +++ b/src/components/ui/TagDisplay.tsx @@ -9,6 +9,7 @@ interface TagDisplayProps { size?: 'sm' | 'md' | 'lg'; maxTags?: number; showColors?: boolean; + showDot?: boolean; onClick?: (tagName: string) => void; className?: string; } @@ -19,6 +20,7 @@ export function TagDisplay({ size = 'sm', maxTags, showColors = true, + showDot = true, onClick, className = "" }: TagDisplayProps) { @@ -60,7 +62,7 @@ export function TagDisplay({ color: showColors ? color : undefined }} > - {showColors && ( + {showColors && showDot && (
{ @@ -415,29 +416,14 @@ const TaskCard = forwardRef( {/* Tags avec couleurs personnalisées */} {tags.length > 0 && (
-
- {tags.slice(0, 3).map((tag, index) => { - const tagConfig = availableTags.find(t => t.name === tag); - return ( - - {tag} - - ); - })} - {tags.length > 3 && ( - - +{tags.length - 3} - - )} -
+
)}