From c6f77cec2eced739c1e8ad0786af21b60204ac22 Mon Sep 17 00:00:00 2001 From: Bergasha Date: Wed, 19 Aug 2026 13:33:08 +1000 Subject: [PATCH] Added resolution to the status column, restructured into two lines: status + LAN/WAN on top, resolution + bitrate underneath --- .../widgets/src/media-server/component.tsx | 40 +++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/packages/widgets/src/media-server/component.tsx b/packages/widgets/src/media-server/component.tsx index 73b229c31..d76c83d58 100644 --- a/packages/widgets/src/media-server/component.tsx +++ b/packages/widgets/src/media-server/component.tsx @@ -288,7 +288,7 @@ export default function MediaServerWidget({ sortable={isAdvanced} sort={sort} onSort={toggleSort} - width={140} + width={170} /> )} @@ -300,6 +300,8 @@ export default function MediaServerWidget({ const status = getPlaybackStatus(currentlyPlaying?.metadata?.transcoding); const location = showLocation ? currentlyPlaying?.location : null; const bitrateLabel = showBitrate ? formatBitrate(currentlyPlaying?.metadata?.bitrateKbps) : null; + const resolution = currentlyPlaying?.metadata?.video.resolution; + const resolutionLabel = resolution ? `${resolution.width}x${resolution.height}` : null; const toggleDetails = () => setSelectedRowId((current) => (current === rowId ? null : rowId)); return ( @@ -350,24 +352,30 @@ export default function MediaServerWidget({ {currentlyPlaying && ( - - {t(`items.${status}` as never)} - - {(location ?? bitrateLabel) && ( - + + + {t(`items.${status}` as never)} + + {location && ( - {location && - (location === "lan" ? ( - - ) : ( - - ))} - {location && ( - - {location} - + {location === "lan" ? ( + + ) : ( + )} + + {location} + + )} + + {(resolutionLabel ?? bitrateLabel) && ( + + {resolutionLabel && ( + + {resolutionLabel} + + )} {bitrateLabel && ( {bitrateLabel}