From 11e32163b85237045660c973e93668cc415bb1db Mon Sep 17 00:00:00 2001 From: npeter83 Date: Fri, 28 Aug 2026 02:06:06 +0200 Subject: [PATCH] fix(ui): SortControl direction toggle no longer wraps on narrow popovers The asc/desc buttons in the sort popover footer share one component across Feed and Plex browse, but rendered differently: the Plex popover is narrower (short option labels), so "Descending" wrapped icon-over-text and made the active button taller. Add whitespace-nowrap to the direction buttons and bump the popover min-width (min-w-52 -> min-w-56) so both call-sites render an identical single-line toggle. --- frontend/src/components/SortControl.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/SortControl.tsx b/frontend/src/components/SortControl.tsx index 817b0dc7..60117335 100644 --- a/frontend/src/components/SortControl.tsx +++ b/frontend/src/components/SortControl.tsx @@ -55,7 +55,7 @@ export default function SortControl({ const summary = activeOpt?.label ?? defaultLabel ?? options[0]?.label ?? ""; const segCls = (on: boolean) => - `flex flex-1 items-center justify-center gap-1 rounded-md border px-2 py-1 text-2xs transition ${ + `flex flex-1 items-center justify-center gap-1 whitespace-nowrap rounded-md border px-2 py-1 text-2xs transition ${ on ? "border-accent bg-accent/15 text-accent" : "border-border text-muted hover:border-accent/50 hover:text-fg" @@ -92,7 +92,7 @@ export default function SortControl({ {/* One exclusive choice of sort key (radios), scoped by a group so AT announces which is checked — the surface is a menu (see the mode above), never a listbox with orphaned options. */}