From 2a8f3b5814a1260a1585ac62f8fc1a45c4d8ead7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Tue, 1 Sep 2026 07:50:25 +0100 Subject: [PATCH] no hand holding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The line under every nav row, the line under every font select, and the caption under the preview. Each explained a control to somebody who has already found it, and the caption was wrong as well — there is no Save to press. The nav rows are one line now, so they centre. Co-Authored-By: Claude Opus 5 (1M context) --- web/NavPanel.tsx | 7 +++---- web/SitePreview.tsx | 5 ----- web/sections/LayoutPanel.tsx | 13 +++++-------- 3 files changed, 8 insertions(+), 17 deletions(-) diff --git a/web/NavPanel.tsx b/web/NavPanel.tsx index de291b4..bb6e97f 100644 --- a/web/NavPanel.tsx +++ b/web/NavPanel.tsx @@ -45,7 +45,7 @@ import { pageParam, usePages } from './usePages'; */ const rowClass = (active: boolean) => - `flex w-full items-start gap-2.5 border-b border-border px-3 py-2.5 text-left transition-colors ${ + `flex w-full items-center gap-2.5 border-b border-border px-3 py-2.5 text-left transition-colors ${ active ? 'bg-muted' : 'hover:bg-muted/50' }`; @@ -64,7 +64,7 @@ export const NavPanel = () => { const body = ( <> - + {section.label} @@ -74,9 +74,8 @@ export const NavPanel = () => { soon )} - {section.hint} - {locked && } + {locked && } ); diff --git a/web/SitePreview.tsx b/web/SitePreview.tsx index cd24161..ff9dcb8 100644 --- a/web/SitePreview.tsx +++ b/web/SitePreview.tsx @@ -352,11 +352,6 @@ export const SitePreview = ({ - {/* Always, now that editing is the only mode. It says which server this is and at what width, - which the device buttons show but the SERVER half of it — dev, not production — they do not. */} -

- The development server, live at {frameWidth}px. Save to see a change here. -

); }; diff --git a/web/sections/LayoutPanel.tsx b/web/sections/LayoutPanel.tsx index 3a2fdd5..4a19310 100644 --- a/web/sections/LayoutPanel.tsx +++ b/web/sections/LayoutPanel.tsx @@ -71,10 +71,10 @@ type Layout = { /** The four roles styles.css declares. A template asks for a role; this decides which face plays it. */ const ROLES = [ - { key: 'font_title' as const, label: 'Headings', hint: 'Page and section titles' }, - { key: 'font_body' as const, label: 'Body', hint: 'Paragraphs and most text' }, - { key: 'font_sub' as const, label: 'Menu', hint: 'The navigation and small labels' }, - { key: 'font_display' as const, label: 'Display', hint: 'The largest statements' }, + { key: 'font_title' as const, label: 'Headings' }, + { key: 'font_body' as const, label: 'Body' }, + { key: 'font_sub' as const, label: 'Menu' }, + { key: 'font_display' as const, label: 'Display' }, ]; /** @@ -319,11 +319,9 @@ export const LayoutPanel = () => { every select, so the row said four times that a font was chosen and never which. Two columns give each one room to be read, which is the only thing this control is for. - The hint moves into the option list's own space rather than a line under each select, which - is where the second row of height was really going. */}
- {ROLES.map(({ key, label, hint }) => ( + {ROLES.map(({ key, label }) => (
- {hint}
))}