From 60f5c38c8cb7e65b5b445be9adee01ae15e6bf38 Mon Sep 17 00:00:00 2001 From: cc Date: Tue, 10 Mar 2026 19:52:14 -0400 Subject: [PATCH] fix: polish platform card layout - Add rom count as detail table row aligned with metadata/region chips - Use standard chip style for fs_slug matching PlatformListItem - Size and percentage on two lines for readability - Adjust platform icon vertical alignment Co-Authored-By: Claude Opus 4.6 --- .../Settings/ServerStats/PlatformsStats.vue | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/Settings/ServerStats/PlatformsStats.vue b/frontend/src/components/Settings/ServerStats/PlatformsStats.vue index 7c1d975e4..2844a352a 100644 --- a/frontend/src/components/Settings/ServerStats/PlatformsStats.vue +++ b/frontend/src/components/Settings/ServerStats/PlatformsStats.vue @@ -141,20 +141,14 @@ function getCoveragePercent(matched: number, total: number): string { />
- -
+ +
{{ platform.display_name }}
-
- +
+ {{ platform.fs_slug }}
-
+
{{ formatBytes(Number(platform.fs_size_bytes)) }}
-
- {{ platform.rom_count }} roms - ยท {{ +
+ {{ getPlatformPercentage( platform.fs_size_bytes, props.totalFilesize, @@ -188,8 +184,16 @@ function getCoveragePercent(matched: number, total: number): string {
- +
+
+ Roms +
+ + {{ platform.rom_count }} + +
+
{{ t("rom.metadata") }} @@ -296,7 +300,7 @@ function getCoveragePercent(matched: number, total: number): string { .platform-icon { display: flex; align-items: flex-start; - padding-top: 2px; + padding-top: 6px; } .detail-table {