From 9fe2f533cc4f0c40cbf3f567aa4c9514df9b4cd1 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 26 May 2026 13:59:29 +0000 Subject: [PATCH] NotFoundPanel: drop self-padding, let the parent layout own the gutter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The panel was self-padding 2rem horizontally, but the explore routes already wrap their content in container-narrow with the same 2rem inset — so the not-found state inside the explorer was indented twice and the text sat narrower than it should. Drop the panel's own horizontal padding. The standalone /not-found route adds a matching container-narrow wrapper to keep its own gutter. --- src/app/not-found.tsx | 7 ++++++- src/components/NotFoundPanel.tsx | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 0f5e04d..7f86957 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -13,7 +13,12 @@ export default function NotFound() {
- + {/* Mirror the explore layout's gutter so the panel doesn't sit flush + against the viewport edges on this top-level route. The panel + itself no longer self-pads. */} +
+ +
); } diff --git a/src/components/NotFoundPanel.tsx b/src/components/NotFoundPanel.tsx index 7e40d28..32a594e 100644 --- a/src/components/NotFoundPanel.tsx +++ b/src/components/NotFoundPanel.tsx @@ -39,9 +39,13 @@ export default function NotFoundPanel({ animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.5, ease: [0.34, 1.56, 0.64, 1] }} style={{ + // Constrains text width but lets the parent layout handle the + // horizontal gutter — the explore routes are already inside a + // container-narrow with its own 2rem of side padding, and adding + // more here doubled the inset. The standalone /not-found route + // wraps this in its own padded container. maxWidth: '40rem', margin: '3rem auto 4rem', - padding: '0 2rem', }} >