t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Snooze option rows overflow the settings card horizontally on narrow viewports

Open imluckii opened this issue 1 month ago • 1 comments

Area

apps/web

Steps to reproduce

  1. Open app.t3.codes in a mobile browser at a ~360 px viewport (or narrow a desktop window to ~380 px).
  2. Open Settings and pick the Threads page.
  3. Scroll to the Snooze section and look at the rows in the "Snooze options" card.

Expected behavior

Each snooze option row (When select, amount field, unit select) stays inside the card and shrinks or wraps on narrow viewports.

Actual behavior

The row keeps a fixed minimum width and overflows the card horizontally. In apps/web/src/components/settings/SnoozePresetsSettings.tsx, the fields cluster is <div className="flex items-center gap-2"> (SnoozePresetFields) holding the When select (w-32), the number field (w-32), and the unit select (w-28): 128 + 128 + 112 + two 8 px gaps = 384 px. That div sits as a flex item inside the row's flex flex-wrap container, and with default min-width: auto it cannot shrink below its content. The wrap only moves the preview/remove cluster to the next line; the fields cluster stays one unwrappable 384 px item. On a 360 px phone viewport the unit select crosses the card boundary and is clipped by the viewport edge, so roughly half the unit dropdown is off-screen.

Impact

Minor bug or occasional failure

Version or commit

Seen on app.t3.codes production on 2026-11-01. The same code is on main at ce9e0164 (SnoozePresetsSettings.tsx).

Environment

Chrome on Android, 360 px viewport, app.t3.codes. Also reproduces in a desktop browser narrowed below ~420 px.

Workaround

Rotate to landscape or widen the window. The clipped controls still respond to taps on their visible part, so options stay editable.

imluckii avatar Nov 01 '26 11:11 imluckii

Thanks for the detailed report. #28223 makes the snooze fields wrap on narrow viewports in ccde655b8f. If you still see overflow on a build containing that fix, please open a new report.

juliusmarminge avatar Nov 09 '26 12:11 juliusmarminge