BUG: Request cards overflow viewport on mobile browsers #49
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Request cards on the Requests tab extend off the right-hand side of the screen on mobile browsers, causing a horizontal scroll and broken layout. The desktop view is unaffected.
Steps to Reproduce
Root Cause Analysis
Multiple compounding CSS issues in
public/style.css:.requests-containerhaspadding: 20pxnested inside.main-tabs { padding: 0 16px }, consuming 72px+ of horizontal space that is not accounted for on narrow screens.white-space: nowrapon.request-title(line ~2276) — prevents long titles from wrapping, forcing cards to grow beyond the viewport width.flex-shrink: 0on.request-actions(line ~2344) — the action icon area never shrinks, compounding the overflow.@media (max-width: 768px)overrides, the Requests tab has zero responsive CSS rules.Proposed Fix
All changes confined to
public/style.css:white-space: nowrapfrom.request-title(allow wrapping with overflow ellipsis viamin-width: 0on the flex parent).min-width: 0to.request-contentto enable flex child shrinking.@media (max-width: 768px)block for the requests section:.requests-containerpadding to12px..request-metato wrap..request-actionson very small screens.overflow-x: hiddento.requests-listas a safety net.Plan to Resolve
All changes are confined to
public/style.css. No JavaScript or HTML changes are needed.Step 1 — Fix
.request-contentflex shrinkingAdd
min-width: 0to.request-content. Without this, a flex child will not shrink below its intrinsic content size, so long titles blow out the card width regardless of other rules.Step 2 — Fix
.request-titletext overflowReplace
white-space: nowrapwith wrapping behaviour so long titles do not force horizontal expansion:Step 3 — Add mobile media query for the Requests section
Append to the existing
@media (max-width: 768px)block (or add a new one) covering:Step 4 — Safety net overflow containment
Add
overflow-x: hiddento.requests-listto prevent any residual overflow propagating to the page and causing the horizontal scrollbar:Testing
Verify at 320px, 375px (iPhone SE/14), and 414px widths using browser DevTools responsive mode. Check all three themes (Light, Dark, Mono). Confirm no horizontal scroll on the Requests tab, and that titles truncate/wrap cleanly on small screens.
Resolved in commit
90837f6.Issue remains, not fixed.
Resolved in commit
d87ad9f1c7.