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 51028226..752e92da 100644 --- a/vibn-frontend/app/[workspace]/project/[projectId]/(home)/code/page.tsx +++ b/vibn-frontend/app/[workspace]/project/[projectId]/(home)/code/page.tsx @@ -50,205 +50,192 @@ export default function CodeTab() { return (
-
- -
- {/* ── 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 ( -
- {codebases.length > 1 && ( -
- - - - -
-
- {cb.label} -
- {cb.hint && ( -
{cb.hint}
- )} -
-
- )} + {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 ( +
+ {codebases.length > 1 && (
1 - ? "0 10px 24px 10px" - : "10px 10px 24px 10px", + ...tileHeader, + padding: "16px 20px 8px", }} > - - setSelection({ - type: "file", - codebaseId: cb.id, - path: p, - }) - } + + + + +
+
+ {cb.label} +
+ {cb.hint &&
{cb.hint}
} +
-
- ); - })} -
- - )} -
+ )} +
1 + ? "0 8px 16px 8px" + : "12px 8px 16px 8px", + }} + > + + setSelection({ + type: "file", + codebaseId: cb.id, + path: p, + }) + } + /> +
+ + ); + })} + + + )} +
- {/* ── Right pane ── */} - -
-
-
+ {/* ── Right pane ── */} + +
+ ); } @@ -390,9 +377,7 @@ const leftCol: React.CSSProperties = { minWidth: 0, display: "flex", flexDirection: "column", - gap: 24, borderRight: `1px solid ${THEME.borderSoft}`, - padding: "20px", overflowY: "auto", }; diff --git a/vibn-frontend/components/project/gitea-file-viewer.tsx b/vibn-frontend/components/project/gitea-file-viewer.tsx index 5c61bdb9..941cc720 100644 --- a/vibn-frontend/components/project/gitea-file-viewer.tsx +++ b/vibn-frontend/components/project/gitea-file-viewer.tsx @@ -144,10 +144,6 @@ export function GiteaFileViewer({ projectId, path }: GiteaFileViewerProps) { minHeight: 0, position: "relative", background: THEME.cardBg, - border: `1px solid ${THEME.border}`, - borderRadius: THEME.radiusSm, - boxShadow: THEME.shadow, - overflow: "hidden", }} >
- {basename(path)} + {path}
{!isImage && (