From a828be323a743f0435a6b7956a755822c4303231 Mon Sep 17 00:00:00 2001 From: wypark Date: Sun, 7 Jun 2026 12:20:18 +0900 Subject: [PATCH] . --- LOG.md | 5 +++++ src/components/admin/AdminPostEditor.tsx | 2 +- src/components/admin/AdminRouteShell.tsx | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/LOG.md b/LOG.md index c1f0553..9021fc7 100644 --- a/LOG.md +++ b/LOG.md @@ -2,6 +2,11 @@ ## 2026-06-07 +- Fixed admin pages being pushed outside the visible content area by removing viewport-based `md:w-[80vw]` widths from the admin route shell and Markdown editor container. +- Changed admin containers to use the remaining shell content width (`w-full` with `max-w-[1400px]`) so the sidebar margin no longer combines with an extra viewport-width layout. +- Validation: `npm run lint` passed and `npm run build` passed. Authenticated browser verification was not possible in the current session because `/admin` redirects to login without an admin token. +- Recommended next task: verify `/admin` and `/admin/posts/new` in an authenticated browser session at desktop widths around 1280px and 1440px. + - Fixed the admin dashboard traffic chart visibility by giving bar columns a real height context, so percentage-based bar heights render instead of collapsing. - Added fallback traffic points from recent/popular post data when the dashboard API or `traffic` array is empty, keeping the graph visible while the backend traffic aggregation is unavailable. - Validation: `npm run lint` passed and `npm run build` passed. Browser navigation to `/admin` was attempted on `http://localhost:3112/`, but the current browser session was unauthenticated and rendered the login screen, so the admin chart itself was validated by code path and build checks rather than a live authenticated screenshot. diff --git a/src/components/admin/AdminPostEditor.tsx b/src/components/admin/AdminPostEditor.tsx index 4842300..001fc00 100644 --- a/src/components/admin/AdminPostEditor.tsx +++ b/src/components/admin/AdminPostEditor.tsx @@ -471,7 +471,7 @@ export default function AdminPostEditor({ editSlug }: AdminPostEditorProps) { } return ( -
+
+