From 2d8fbbbd81af25c8946ac433d8c134fef17f0f10 Mon Sep 17 00:00:00 2001 From: Mark Henderson Date: Thu, 5 Mar 2026 20:28:24 -0800 Subject: [PATCH] Move design configurables to right panel, hide shell right panel on design tab - ProjectShell right panel (Discovery/Captured) hidden when on design tab - SurfaceSection restructured: scaffold preview center, controls right panel (280px) - Library cards in 2-col grid, configurator and color picker scroll in right panel - Main content area uses full height without extra padding Made-with: Cursor --- .../project/[projectId]/design/page.tsx | 30 +++++++++++++------ components/layout/project-shell.tsx | 9 +++--- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/app/[workspace]/project/[projectId]/design/page.tsx b/app/[workspace]/project/[projectId]/design/page.tsx index 31b7d45..03e2882 100644 --- a/app/[workspace]/project/[projectId]/design/page.tsx +++ b/app/[workspace]/project/[projectId]/design/page.tsx @@ -558,15 +558,19 @@ function SurfaceSection({ const isLocked = !!lockedThemeId; return ( -
+
- {/* Browser chrome + scaffold */} + {/* Center — browser chrome + scaffold */} +
{/* Chrome bar */}
- {/* Controls below render */} -
+
{/* end center scaffold wrapper */} - {/* Library capability cards */} -
+ {/* Right — controls panel */} +
+
+ + {/* Library capability cards — 2-col grid */} +
{surface.themes.map(theme => { const isActive = theme.id === previewId; const isThisLocked = theme.id === lockedThemeId; @@ -779,7 +790,8 @@ function SurfaceSection({ )}
-
+
{/* end inner padding div */} +
{/* end right panel */}
); } @@ -1081,7 +1093,7 @@ export default function DesignPage({ params }: { params: Promise<{ workspace: st
{/* Main content */} -
+
{currentSurface && (
- {/* Right panel */} + {/* Right panel — hidden on design tab (design page has its own right panel) */}
{/* Discovery phases */} Discovery