From 2066059c354a14e24007b1d3c8001788d248e668 Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Sun, 12 Jul 2026 21:12:09 -0700 Subject: [PATCH] fix(builder): phase-2 design tweaks (landing home icon, decouple layer-hover from guides, neutral zone separator) - PagesPanel: add fa-home glyph (8px, inherits badge text color) before "Landing" text in the landing-page badge, restoring the icon dropped in an earlier polish pass. - editor.css: split [data-craft-hovered] and [data-layer-hovered] into distinct rules. Layer-hover now uses a solid 2px accent outline (vs the dashed structural guides) and is excluded from the .guides-off suppression list, so the Layers-panel hover->canvas locator still works when "Show guides" is off. Structural guides/hover ([data-craft-node], [data-craft-hovered]) remain correctly gated. - Canvas.tsx: move the header/footer ZonePreview separator border to a .zone-preview-sep class, recolor it from amber (rgba(245,158,11,0.3)) to neutral (rgba(148,163,184,0.25)) to match the empty-state variant, and gate it on .guides-off via CSS descendant selector so it disappears with the rest of the guides. --- craft/src/editor/Canvas.tsx | 5 ++-- craft/src/panels/left/PagesPanel.tsx | 4 +++ craft/src/styles/editor.css | 41 ++++++++++++++++++++-------- 3 files changed, 36 insertions(+), 14 deletions(-) diff --git a/craft/src/editor/Canvas.tsx b/craft/src/editor/Canvas.tsx index 36bdf42..ba3eab2 100644 --- a/craft/src/editor/Canvas.tsx +++ b/craft/src/editor/Canvas.tsx @@ -83,13 +83,14 @@ const ZonePreview: React.FC<{ craftState: string | null; zone: 'header' | 'foote
); diff --git a/craft/src/panels/left/PagesPanel.tsx b/craft/src/panels/left/PagesPanel.tsx index 106c930..30946f9 100644 --- a/craft/src/panels/left/PagesPanel.tsx +++ b/craft/src/panels/left/PagesPanel.tsx @@ -319,8 +319,12 @@ export const PagesPanel: React.FC = () => { padding: '1px 5px', borderRadius: 'var(--radius-sm)', flexShrink: 0, + display: 'inline-flex', + alignItems: 'center', + gap: 4, }} > +