Skip to content

Commit 73c4f7e

Browse files
authored
Merge pull request #12 from firstsun-dev/fix/sessions-filter-overflow
fix(dashboard): stop Sessions filter row from overflowing panel width
2 parents c3749f6 + 71a9db6 commit 73c4f7e

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

dashboard/src/components/sessions/SessionListPanel.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,12 @@ export function SessionListPanel({
255255
</Select>
256256
</div>
257257

258-
{/* Row 3: Date range + Outcome + Save */}
258+
{/* Row 3: Date range + Outcome */}
259259
<div className="flex gap-2 items-center">
260260
{/* Date range with custom escape hatch */}
261261
<Popover open={customDateOpen} onOpenChange={setCustomDateOpen}>
262262
<PopoverTrigger asChild>
263-
<Button variant="outline" size="sm" className="h-7 text-xs gap-1 flex-1 justify-start px-2">
263+
<Button variant="outline" size="sm" className="h-7 text-xs gap-1 flex-1 min-w-0 justify-start px-2">
264264
<CalendarDays className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />
265265
<span className="truncate">{dateRangeLabel}</span>
266266
</Button>
@@ -319,7 +319,7 @@ export function SessionListPanel({
319319
value={filters.outcome || 'all'}
320320
onValueChange={(v) => onFilterChange('outcome', v)}
321321
>
322-
<SelectTrigger className="h-7 text-xs flex-1">
322+
<SelectTrigger className="h-7 text-xs flex-1 min-w-0">
323323
<SelectValue placeholder="Outcome" />
324324
</SelectTrigger>
325325
<SelectContent>
@@ -330,17 +330,20 @@ export function SessionListPanel({
330330
))}
331331
</SelectContent>
332332
</Select>
333+
</div>
333334

335+
{/* Row 4: Source + Home + Save */}
336+
<div className="flex gap-2 items-center">
334337
<SourceToolSelect
335338
value={filters.source || 'all'}
336339
onValueChange={(v) => onFilterChange('source', v)}
337-
className="h-7 text-xs flex-1"
340+
className="h-7 text-xs flex-1 min-w-0"
338341
/>
339342

340343
<HomeSelect
341344
value={filters.homeId || 'all'}
342345
onValueChange={(v) => onFilterChange('homeId', v)}
343-
className="h-7 text-xs flex-1"
346+
className="h-7 text-xs flex-1 min-w-0"
344347
/>
345348

346349
<SaveFilterPopover

0 commit comments

Comments
 (0)