From b020f73ca737c8580f085a61342f549f45800db3 Mon Sep 17 00:00:00 2001 From: Mark Henderson Date: Thu, 5 Mar 2026 20:34:51 -0800 Subject: [PATCH] Simplify right panel: name buttons for library, labels above options, lock at top Made-with: Cursor --- .../project/[projectId]/design/page.tsx | 211 ++++++------------ 1 file changed, 72 insertions(+), 139 deletions(-) diff --git a/app/[workspace]/project/[projectId]/design/page.tsx b/app/[workspace]/project/[projectId]/design/page.tsx index 03e2882..3153078 100644 --- a/app/[workspace]/project/[projectId]/design/page.tsx +++ b/app/[workspace]/project/[projectId]/design/page.tsx @@ -357,9 +357,9 @@ const LIBRARY_STYLE_OPTIONS: Record = { function ConfigRow({ label, children }: { label: string; children: React.ReactNode }) { return ( -
- {label} -
+
+ {label} +
{children}
@@ -612,95 +612,77 @@ function SurfaceSection({ background: "#fff", overflow: "auto", display: "flex", flexDirection: "column", gap: 0, }}> -
+
- {/* Library capability cards β€” 2-col grid */} -
- {surface.themes.map(theme => { - const isActive = theme.id === previewId; - const isThisLocked = theme.id === lockedThemeId; - const dimmed = isLocked && !isThisLocked; - return ( - + ) : ( + + )} + {activeTheme && ( + (e.currentTarget.style.color = "#1a1a1a")} + onMouseLeave={e => (e.currentTarget.style.color = "#b5b0a6")} + >Docs β†— + )} +
+ + {/* Library β€” simple name buttons */} +
+ Library +
+ {surface.themes.map(theme => { + const isActive = theme.id === previewId; + const isThisLocked = theme.id === lockedThemeId; + const dimmed = isLocked && !isThisLocked; + return ( +
- - {/* Best for */} - {theme.bestFor && ( -

- Best for: {theme.bestFor} -

- )} - - {/* Highlights */} - {theme.highlights && theme.highlights.length > 0 && ( -
- {theme.highlights.map((h, i) => ( -
- β†’ - {h} -
- ))} -
- )} - - {/* Tags */} -
- {theme.tags.map(t => ( - {t} - ))} -
- - {/* Active indicator */} - {isActive && !isThisLocked && ( -
βœ“
- )} - - ); - })} + {theme.name} + + ); + })} +
{/* Design configurator β€” mode, background, nav, header, sections, font */} @@ -741,55 +723,6 @@ function SurfaceSection({
)} - {/* Docs link + lock action bar */} -
- {activeTheme && ( - <> - (e.currentTarget.style.color = "#1a1a1a")} - onMouseLeave={e => (e.currentTarget.style.color = "#a09a90")} - > - {activeTheme.name} docs β†— - -
- - )} - {isLocked ? ( - - ) : ( - - )} -
{/* end inner padding div */}
{/* end right panel */}