From c56a39d76302a10f5a0533b01d4c1907f84bad5c Mon Sep 17 00:00:00 2001 From: mawkone Date: Sun, 14 Jun 2026 13:25:35 -0700 Subject: [PATCH] fix(codebase): optimize layout for editor view - Removes top PageHeader to maximize vertical space. - Sets layout padding tighter. - Dynamically replaces 'Code files' header with the repository name (if single repo). - Hides redundant nested tile header when there's only one codebase. --- .../project/[projectId]/(home)/code/page.tsx | 84 ++++++++++++------- 1 file changed, 55 insertions(+), 29 deletions(-) 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 8231b5d..b19b61c 100644 --- a/vibn-frontend/app/[workspace]/project/[projectId]/(home)/code/page.tsx +++ b/vibn-frontend/app/[workspace]/project/[projectId]/(home)/code/page.tsx @@ -53,18 +53,23 @@ export default function CodeTab() { minHeight: "100vh", background: THEME.canvasGradient, fontFamily: THEME.font, - padding: "36px 48px", + padding: "24px", }} > -
- +
@@ -104,7 +109,14 @@ export default function CodeTab() { {anatomy && ( <> {/* Code Files */} - + {codebases && codebases.length === 0 && ( {reason === "no_repo" ? ( @@ -134,33 +146,47 @@ export default function CodeTab() { flex: 1, }} > -
- - 1 && ( +
+ + + + - - -
-
- {cb.label} +
+
+ {cb.label} +
+ {cb.hint && ( +
{cb.hint}
+ )}
- {cb.hint &&
{cb.hint}
}
-
-
+ )} +
1 + ? "0 10px 24px 10px" + : "10px 10px 24px 10px", + }} + >