From d409e27a95064fd4a47c7fe726ad74eec058cf68 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Mon, 13 Jul 2026 06:28:41 +0800 Subject: [PATCH] fix(plugin): game URL by steamAppId, inline dropdown to save vertical space --- .../src/components/LibraryAppPanel.tsx | 48 +++++++++---------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/plugins/decky-vault/src/components/LibraryAppPanel.tsx b/plugins/decky-vault/src/components/LibraryAppPanel.tsx index 3da1375..601a3a4 100644 --- a/plugins/decky-vault/src/components/LibraryAppPanel.tsx +++ b/plugins/decky-vault/src/components/LibraryAppPanel.tsx @@ -74,8 +74,8 @@ export default function LibraryAppPanel({ appId, title, hardwareSlug, baseUrl }: .map((d) => ({ label: `${d.name} (${d.count})`, data: d.slug })), ] - const gameUrl = data?.game?.slug - ? `${baseUrl}/games/${data.game.slug}` + const gameUrl = data?.game?.steamAppId + ? `${baseUrl}/game/${data.game.steamAppId}` : `${baseUrl}/games` if (loading) { @@ -110,33 +110,31 @@ export default function LibraryAppPanel({ appId, title, hardwareSlug, baseUrl }: return ( <> - {/* Centered stats row */} + {/* Stats + device dropdown inline */} -
- {data.estFps ? ( - - {data.estFps.avg} avg - {data.estFps.onePct != null && {data.estFps.onePct} 1% low} - {data.estFps.low != null && {data.estFps.low} min} - {data.estFps.high != null && {data.estFps.high} max} - {data.estFps.tdpAvg != null && {data.estFps.tdpAvg}W TDP} - ({data.estFps.count}) - - ) : ( - No data yet - )} +
+ + {data.estFps ? ( + + {data.estFps.avg} avg + {data.estFps.onePct != null && {data.estFps.onePct} 1% low} + {data.estFps.low != null && {data.estFps.low} min} + {data.estFps.high != null && {data.estFps.high} max} + {data.estFps.tdpAvg != null && {data.estFps.tdpAvg}W TDP} + ({data.estFps.count}) + + ) : ( + No data yet + )} + + setDevice(opt.data as string)} + />
- {/* Device dropdown */} - - setDevice(opt.data as string)} - /> - - {/* View Details button */} openExternalUrl(gameUrl)}>