diff --git a/vibn-frontend/app/[workspace]/project/[projectId]/(home)/code/page.tsx b/vibn-frontend/app/[workspace]/project/[projectId]/(home)/code/page.tsx index 6bfaa54b..8231b5d5 100644 --- a/vibn-frontend/app/[workspace]/project/[projectId]/(home)/code/page.tsx +++ b/vibn-frontend/app/[workspace]/project/[projectId]/(home)/code/page.tsx @@ -58,142 +58,170 @@ export default function CodeTab() { >
-
- {/* ── Left rail ── */} -
- {showLoading && ( - -
- Loading… -
-
- )} - {error && !showLoading && ( - -
- {error} -
-
- )} + +
+ {/* ── Left rail ── */} +
+ {showLoading && ( + +
+ Loading… +
+
+ )} + {error && !showLoading && ( + +
+ {error} +
+
+ )} - {anatomy && ( - <> - {/* Code Files */} - - {codebases && codebases.length === 0 && ( - - {reason === "no_repo" ? ( - <> - No codebase yet.{" "} - - Try: "Start building my app" - - - ) : ( - <> - Repo is empty — push a first commit.{" "} - - Try: "Scaffold a Next.js app" - - - )} - - )} - {codebases?.map((cb) => { - return ( -
-
- - + {/* Code Files */} + + {codebases && codebases.length === 0 && ( + + {reason === "no_repo" ? ( + <> + No codebase yet.{" "} + + Try: "Start building my app" + + + ) : ( + <> + Repo is empty — push a first commit.{" "} + + Try: "Scaffold a Next.js app" + + + )} + + )} + {codebases?.map((cb) => { + return ( +
+
+ + + + - - -
-
{cb.label}
- {cb.hint &&
{cb.hint}
} +
+
+ {cb.label} +
+ {cb.hint &&
{cb.hint}
} +
-
-
- - setSelection({ - type: "file", - codebaseId: cb.id, - path: p, - }) - } - /> -
-
- ); - })} -
- - )} -
+
+ + setSelection({ + type: "file", + codebaseId: cb.id, + path: p, + }) + } + /> +
+ + ); + })} + + + )} +
- {/* ── Right pane ── */} - -
+ {/* ── Right pane ── */} + +
+ ); @@ -326,18 +354,19 @@ const pageWrap: React.CSSProperties = { }; const grid: React.CSSProperties = { display: "grid", - gridTemplateColumns: "minmax(280px, 360px) minmax(0, 1fr)", - gap: 28, - maxWidth: 1400, - margin: "0 auto", + gridTemplateColumns: "300px minmax(0, 1fr)", alignItems: "stretch", }; + const leftCol: React.CSSProperties = { minWidth: 0, display: "flex", flexDirection: "column", - gap: 18, + gap: 24, + borderRight: `1px solid ${THEME.borderSoft}`, + paddingRight: 24, }; + const rightCol: React.CSSProperties = { minWidth: 0, display: "flex",