fix(#91): add px-4 base padding and fix admin tab overflow at 320px #106

Merged
marcel merged 1 commits from feature/91-fix-horizontal-scroll-320px into main 2026-03-27 15:50:19 +01:00
Owner

Closes #91

Summary

  • Home and Admin pages had no horizontal padding below sm (640px) — sm:px-6 lg:px-8 with no mobile base caused content to bleed edge-to-edge
  • Admin's header row (flex justify-between with h1 + 4 tab buttons) overflowed by ~110px at 320px viewport
  • Home +page.svelte: added px-4 base to <main>
  • Admin +page.svelte: added px-4 base to outer container; header row now stacks vertically on mobile (flex-col sm:flex-row); tab button padding reduced to px-2 on mobile (sm:px-4 on desktop)

Test plan

  • At 320px: Home page has no horizontal scrollbar
  • At 320px: Admin page has no horizontal scrollbar
  • At 320px: Admin heading and tab bar stack vertically, both fully visible
  • At 640px+: Admin heading and tab bar are side-by-side as before
  • Tab buttons remain functional on all viewport sizes
  • No visual regression at 768px, 1024px, 1440px
Closes #91 ## Summary - Home and Admin pages had no horizontal padding below `sm` (640px) — `sm:px-6 lg:px-8` with no mobile base caused content to bleed edge-to-edge - Admin's header row (`flex justify-between` with h1 + 4 tab buttons) overflowed by ~110px at 320px viewport - Home `+page.svelte`: added `px-4` base to `<main>` - Admin `+page.svelte`: added `px-4` base to outer container; header row now stacks vertically on mobile (`flex-col sm:flex-row`); tab button padding reduced to `px-2` on mobile (`sm:px-4` on desktop) ## Test plan - [ ] At 320px: Home page has no horizontal scrollbar - [ ] At 320px: Admin page has no horizontal scrollbar - [ ] At 320px: Admin heading and tab bar stack vertically, both fully visible - [ ] At 640px+: Admin heading and tab bar are side-by-side as before - [ ] Tab buttons remain functional on all viewport sizes - [ ] No visual regression at 768px, 1024px, 1440px
marcel added 1 commit 2026-03-27 15:50:05 +01:00
fix(#91): add px-4 base padding and fix admin tab overflow at 320px
Some checks failed
CI / Unit & Component Tests (pull_request) Successful in 2m42s
CI / Backend Unit Tests (pull_request) Successful in 2m23s
CI / E2E Tests (pull_request) Failing after 29m0s
CI / Unit & Component Tests (push) Successful in 3m20s
CI / Backend Unit Tests (push) Successful in 2m21s
CI / E2E Tests (push) Failing after 29m37s
afebaf4c53
Home and Admin had no horizontal padding below the sm breakpoint (640px),
causing content to bleed to viewport edges. Admin's flex justify-between
row with h1 + 4 tab buttons overflowed by ~110px at 320px.

- +page.svelte: add px-4 to <main> (sm:px-6 lg:px-8 unchanged)
- admin/+page.svelte: add px-4 to outer container; stack header row
  vertically on mobile (flex-col sm:flex-row); reduce tab button padding
  to px-2 on mobile (sm:px-4 on desktop)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
marcel force-pushed feature/91-fix-horizontal-scroll-320px from 9bf88b3321 to afebaf4c53 2026-03-27 15:50:05 +01:00 Compare
marcel merged commit afebaf4c53 into main 2026-03-27 15:50:19 +01:00
marcel deleted branch feature/91-fix-horizontal-scroll-320px 2026-03-27 15:50:20 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: marcel/familienarchiv#106