fix(shot-status): Group by buttons fit on phones

The project picker (fixed 288px) and the Group by buttons shared one
unwrapping row, so on a phone the buttons ran off the right edge. Below md
the picker fills the row and Group by wraps onto its own line; from md it
is one row as before.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
twotalesanimation
2026-09-18 08:13:13 +02:00
parent 0c4f94d56a
commit 724b0cbefe
@@ -1132,10 +1132,12 @@ export function ShotStatusClient({
</div> </div>
{/* Project selector */} {/* Project selector */}
<div className="flex items-center gap-3"> {/* Phones: the picker fills the row and "Group by" wraps onto its own
line. From md: one row, as on desktop. */}
<div className="flex flex-wrap items-center gap-3">
<label className="text-sm text-zinc-400 shrink-0">Project:</label> <label className="text-sm text-zinc-400 shrink-0">Project:</label>
<Select value={selectedProjectId ?? ""} onValueChange={handleProjectChange}> <Select value={selectedProjectId ?? ""} onValueChange={handleProjectChange}>
<SelectTrigger className="w-72"> <SelectTrigger className="flex-1 min-w-0 md:flex-none md:w-72">
<SelectValue placeholder="Select a project..." /> <SelectValue placeholder="Select a project..." />
</SelectTrigger> </SelectTrigger>
<SelectContent> <SelectContent>
@@ -1148,7 +1150,7 @@ export function ShotStatusClient({
</SelectContent> </SelectContent>
</Select> </Select>
{selectedProject && !isEpisodic && ( {selectedProject && !isEpisodic && (
<> <div className="flex w-full md:w-auto items-center gap-3">
<span className="text-sm text-zinc-500">Group by:</span> <span className="text-sm text-zinc-500">Group by:</span>
{(["flat", "scene", "group"] as const).map((mode) => ( {(["flat", "scene", "group"] as const).map((mode) => (
<button <button
@@ -1164,7 +1166,7 @@ export function ShotStatusClient({
{mode === "flat" ? "None" : mode === "scene" ? "Scene" : "Group"} {mode === "flat" ? "None" : mode === "scene" ? "Scene" : "Group"}
</button> </button>
))} ))}
</> </div>
)} )}
</div> </div>