From de0c16338fbe18f6359d00ccf955060f5cf9661e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 15 May 2026 18:58:35 +0200 Subject: [PATCH] fix(auth): lift the register submit button and add a branded not-found page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Promote the register page's submit button to the 44 px tap-target floor (size="lg" + min-h-11 + w-full) so the primary action stays finger-tap reachable on a narrow viewport. Add a new branded not-found.tsx page. The previous implicit fallback was Next.js's bare framework text; this introduces a lighter wrapper than ErrorDetails (404 is not an application error) — Logo, headline, explanatory paragraph, and a single "Back to dashboard" link. The wrapper carries min-h-dvh and safe-area-inset-top so the panel anchors centred under iOS Safari's animated URL bar and stays clear of the notch. Apply the same dvh + safe-area pattern on the root-layout global error boundary and lift its inline button heights to 44 px. Wrap the ErrorDetails panel in a min-h-dvh flex column so server-error pages also centre instead of hugging the notch. --- src/app/auth/register/page.tsx | 11 +++++++- src/app/global-error.tsx | 23 +++++++++++---- src/app/not-found.tsx | 48 ++++++++++++++++++++++++++++++++ src/components/error-details.tsx | 7 ++++- 4 files changed, 81 insertions(+), 8 deletions(-) create mode 100644 src/app/not-found.tsx diff --git a/src/app/auth/register/page.tsx b/src/app/auth/register/page.tsx index f922648a1..d52fb3211 100644 --- a/src/app/auth/register/page.tsx +++ b/src/app/auth/register/page.tsx @@ -153,7 +153,16 @@ export default function RegisterPage() { )} -