Fix login page padding, add collapsible sidebar, fix dev-origin blocking #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-login-page-padding"
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
<main>always applied the standard app padding, even when there's no signed-in session, insetting the login/forgot-password/reset-password pages' own full-bleed centered card inside the white<body>background (white bars on the sides). That padding is now skipped whenever there's no sessionnext devsilently blocking page JavaScript when accessed via127.0.0.1instead oflocalhost(found while testing the login-page fix) — addedallowedDevOriginstonext.config.mjsTest plan
npm run build/npm run lint/npm testall pass at each step/loginrenders<main>without the padding classes, while an authenticated page (/schedule) still has themlocalhostand127.0.0.1Fix white bars on login/forgot/reset-password pagesto Fix login page padding, add collapsible sidebar, fix dev-origin blockingSummary of changes in this PR (v1.90.0 → v1.90.2):
v1.90.1 — Fix login page padding
The root layout's
<main>always applied the standard app padding (p-4 lg:p-6,pt-[72px] lg:pt-0), even with no signed-in session. That inset the login/forgot-password/reset-password pages' own full-bleed centered card inside the white<body>, showing as white bars down the sides. Padding is now skipped wheneverroleis null.v1.90.2 — Collapsible sidebar + narrower default width
Added a toggle button in the sidebar header that collapses it to a slim icon-only rail (~64px, hover tooltips for labels) and back. Also narrowed the default expanded width from 224px to 208px, per feedback while testing.
v1.90.2 — Dev-origin fix
Found while testing the login fix:
next dev's Turbopack silently blocks page JavaScript (chunks + HMR) when the app is accessed via127.0.0.1instead of the exactlocalhostorigin it prints on startup — no visible error, the page just never hydrates. AddedallowedDevOrigins: ["localhost", "127.0.0.1"]tonext.config.mjs.All three verified with
npm run build/npm run lint/npm test, plus live testing in the dev server (confirmed by @sb).