Skip to content

fix(ui): make the app and site clean on phones - #28

Merged
kerolosxgad merged 2 commits into
mainfrom
claude/responsive-phone-ui-3ff0c1
Dec 3, 2026
Merged

kerolosxgad merged 2 commits into
mainfrom
claude/responsive-phone-ui-3ff0c1

Conversation

@kerolosxgad

Copy link
Copy Markdown
Member

What

A phone-width pass over every page (public site, auth, and the whole signed-in app including admin), fixing everything that overflowed, clipped, or read poorly.

Bugs fixed

  • Campaign setup overflowed 120px at 320px: long <select> option text made the grid column wider than the screen. Fields can now shrink (min-w-0 on Field/inputs).
  • iOS focus zoom: inputs were 14px, so Safari zoomed in on every focus. Now 16px on phones, 14px from sm up.
  • Stretched badges: a Badge placed directly in a grid cell stretched across the whole row (dashboard recent campaigns, admin campaigns).
  • Recipients report: on phones the status and detail columns were off-screen in a sideways scroll. Below lg each row now stacks (email + status, then detail).
  • Landing hero overflowed by 14px at 320px.
  • Long campaign subjects, names, domains, emails and file names now truncate or wrap instead of pushing layouts wide (campaign header, sender @domain add-on, connections, admin user facts, attachments list, notices).

UX

  • Campaign steps are a 2×2 grid below lg instead of a 704px sideways scroller.
  • The mobile app nav hides its scrollbar and scrolls the current page into view (Account/Admin used to start off-screen).
  • Search fields fill the width on phones instead of a fixed 256/288px.
  • Confirm dialog buttons stack full-width on phones.
  • The HTML editor and preview each get 60vh on phones. Drag & drop shows a hint that it works best on a larger screen.
  • The public headers show Sign in on phones (it used to be hidden), with the CTA shortened to "Sign up".
  • Long full-width pricing/billing buttons can wrap. The Remove links and the pager have bigger touch targets.
  • The loading skeleton no longer overflows its cells at tablet width.

How it was checked

  • Ran locally against a throwaway MariaDB with seeded data (long names, every campaign status, failed recipients, suppressions, admin role).
  • A script loaded every page at 320, 360, 390 and 430px and flagged page overflow, content clipped inside overflow-hidden cards, and inputs under 16px. All clean.
  • Visual checks at 375px, about 800px (sidebar plus narrow main column) and 1280px. Desktop is unchanged: the report is still a real table at lg+.
  • npm run typecheck and npm run lint pass. next build compiles and generates every page.
  • Not checked live: /pricing and /billing, because they need PAYPAL_CLIENT_ID. Their changes are limited to padding and letting the button labels wrap.

- Form fields use 16px text on phones so iOS Safari stops zooming on focus,
  and can shrink inside flex/grid rows (long <select> options no longer
  push the campaign setup form 120px off-screen at 320px).
- Badges no longer stretch full-width as grid items; notices, headings and
  long domains, emails and file names wrap instead of overflowing.
- Campaign steps become a 2x2 grid below lg instead of a sideways scroller,
  and the recipients report stacks each row (email, status, detail) so the
  status isn't hidden off-screen.
- Mobile app nav hides its scrollbar and scrolls the current page into view.
- Search fields fill the width on phones instead of a fixed 256/288px.
- Confirm dialog buttons stack full-width on phones.
- HTML editor and preview get usable heights on phones; the drag-and-drop
  editor shows a hint that it works best on a larger screen.
- Landing and site headers show Sign in on phones (Sign up shortened), and
  the hero headline no longer overflows at 320px.
- Long full-width pricing/billing buttons wrap; smaller touch targets on
  Remove links and the pager get more room.
…ne-ui-3ff0c1

# Conflicts:
#	src/app/(site)/layout.tsx
#	src/app/page.tsx
@kerolosxgad
kerolosxgad merged commit 3c1dfa8 into main Dec 3, 2026
1 check passed
@kerolosxgad
kerolosxgad deleted the claude/responsive-phone-ui-3ff0c1 branch December 3, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant