From b36b72b8e047cb50cd37c6f394b7f7efbfaa8fa5 Mon Sep 17 00:00:00 2001 From: Lars Behrends Date: Sat, 11 Apr 2026 00:39:36 +0200 Subject: [PATCH] Update DetailView.tsx --- src/components/DetailView.tsx | 164 +++++++++++++++++----------------- 1 file changed, 83 insertions(+), 81 deletions(-) diff --git a/src/components/DetailView.tsx b/src/components/DetailView.tsx index 30636b5..e424e99 100644 --- a/src/components/DetailView.tsx +++ b/src/components/DetailView.tsx @@ -45,8 +45,8 @@ export default function DetailView({ media, onPersonClick }: DetailViewProps) { {/* Content */}
-
- {/* Left Column: Poster */} +
+ {/* Left Column: Poster + Metadata */}
+ + {/* Compact metadata under poster */} +
+ {media.studios && media.studios.length > 0 && ( +

+ Studios: + {media.studios.join(', ')} +

+ )} + {media.developers && media.developers.length > 0 && ( +
+ Developers: + {media.developers.map(dev => ( + + {dev} + + ))} +
+ )} + {media.platforms && media.platforms.length > 0 && ( +
+ Platforms: + {media.platforms.map(platform => ( + + {platform} + + ))} +
+ )} + {media.categories && media.categories.length > 0 && ( +
+ Categories: + {media.categories.map(category => ( + + {category} + + ))} +
+ )} + {media.completionStatus && ( +

+ Completion: + {media.completionStatus} +

+ )} + {media.source && ( +

+ Source: + {media.source} +

+ )} + {media.playCount !== undefined && media.playCount !== null && ( +

+ Play Count: + {media.playCount} +

+ )} + {media.playtime !== undefined && media.playtime !== null && media.playtime > 0 && ( +

+ Playtime: + {media.playtime}h +

+ )} + {media.lastActivity && ( +

+ Last Activity: + {media.lastActivity} +

+ )} +
+ Links: + + +
+
{/* Right Column: Info */} -
+

@@ -103,92 +178,19 @@ export default function DetailView({ media, onPersonClick }: DetailViewProps) {

-

- {media.description} -

+
{/* Tags */} -
+
{media.tags?.map(tag => ( {tag} ))}
- -
- {media.studios && media.studios.length > 0 && ( -

- Studios: - {media.studios.join(', ')} -

- )} - {media.developers && media.developers.length > 0 && ( -
- Developers: - {media.developers.map(dev => ( - - {dev} - - ))} -
- )} - {media.platforms && media.platforms.length > 0 && ( -
- Platforms: - {media.platforms.map(platform => ( - - {platform} - - ))} -
- )} - {media.categories && media.categories.length > 0 && ( -
- Categories: - {media.categories.map(category => ( - - {category} - - ))} -
- )} - {media.completionStatus && ( -

- Completion: - {media.completionStatus} -

- )} - {media.source && ( -

- Source: - {media.source} -

- )} - {media.playCount !== undefined && media.playCount !== null && ( -

- Play Count: - {media.playCount} -

- )} - {media.playtime !== undefined && media.playtime !== null && media.playtime > 0 && ( -

- Playtime: - {media.playtime}h -

- )} - {media.lastActivity && ( -

- Last Activity: - {media.lastActivity} -

- )} -
- Links: - - -
-