From 058830bb60dd79d4a844d116c10cac8c94c8c1c4 Mon Sep 17 00:00:00 2001 From: Mathis HERRIOT <197931332+0x485254@users.noreply.github.com> Date: Wed, 21 Jan 2026 13:48:29 +0100 Subject: [PATCH] refactor(content-card): fix indentation and improve readability - Fixed inconsistent indentation in `content-card` component. - Enhanced code readability by restructuring JSX elements properly. --- frontend/src/components/content-card.tsx | 148 ++++++++++++----------- 1 file changed, 75 insertions(+), 73 deletions(-) diff --git a/frontend/src/components/content-card.tsx b/frontend/src/components/content-card.tsx index a64a2e6..cac2a3b 100644 --- a/frontend/src/components/content-card.tsx +++ b/frontend/src/components/content-card.tsx @@ -100,7 +100,9 @@ export function ContentCard({ content, onUpdate }: ContentCardProps) { - {content.author.username[0].toUpperCase()} + + {content.author.username[0].toUpperCase()} +
- - - {content.mimeType.startsWith("image/") ? ( - {content.title} - ) : ( - - -
-
- - - -
- -
- -
-

{content.title}

-
- {content.tags.slice(0, 3).map((tag, _i) => ( - + + {content.mimeType.startsWith("image/") ? ( + {content.title} + ) : ( +
- - - onUpdate?.()} - /> + +
+

{content.title}

+
+ {content.tags.slice(0, 3).map((tag, _i) => ( + + #{typeof tag === "string" ? tag : tag.name} + + ))} +
+
+ + + onUpdate?.()} + /> ); }