From e56bc1bc7781c3221135a763f44936221c635778 Mon Sep 17 00:00:00 2001 From: Lukas May Date: Thu, 5 Mar 2026 11:49:13 +0100 Subject: [PATCH] fix: Move review sidebar to left side for standard editor layout Matches VS Code / GitHub convention where file explorer sits on the left and the main content area (diff viewer) takes the remaining space on the right. --- .../src/components/review/ReviewSidebar.tsx | 36 +++++++++---------- apps/web/src/components/review/ReviewTab.tsx | 36 +++++++++---------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/apps/web/src/components/review/ReviewSidebar.tsx b/apps/web/src/components/review/ReviewSidebar.tsx index 75894c8..4757594 100644 --- a/apps/web/src/components/review/ReviewSidebar.tsx +++ b/apps/web/src/components/review/ReviewSidebar.tsx @@ -39,6 +39,23 @@ export function ReviewSidebar({ return (
+ {/* Icon strip — left edge */} +
+ setView("files")} + /> + setView("commits")} + badge={commits.length > 1 ? commits.length : undefined} + /> +
+ {/* Content panel */}
{view === "files" ? ( @@ -58,23 +75,6 @@ export function ReviewSidebar({ /> )}
- - {/* Icon strip — right edge */} -
- setView("files")} - /> - setView("commits")} - badge={commits.length > 1 ? commits.length : undefined} - /> -
); } @@ -102,7 +102,7 @@ function IconTab({ relative flex items-center justify-center w-8 h-8 rounded-md transition-all duration-150 ${active - ? "text-primary bg-primary/10 shadow-[inset_2px_0_0_0] shadow-primary" + ? "text-primary bg-primary/10 shadow-[inset_-2px_0_0_0] shadow-primary" : "text-muted-foreground hover:text-foreground hover:bg-accent/50" } `} diff --git a/apps/web/src/components/review/ReviewTab.tsx b/apps/web/src/components/review/ReviewTab.tsx index 8fac959..0d0d492 100644 --- a/apps/web/src/components/review/ReviewTab.tsx +++ b/apps/web/src/components/review/ReviewTab.tsx @@ -298,8 +298,24 @@ export function ReviewTab({ initiativeId }: ReviewTabProps) { /> {/* Main content area — sidebar always rendered to preserve state */} -
- {/* Left: Diff */} +
+ {/* Left: Sidebar — sticky so icon strip stays visible */} +
+
+ +
+
+ + {/* Right: Diff */}
{isDiffLoading ? (
@@ -325,22 +341,6 @@ export function ReviewTab({ initiativeId }: ReviewTabProps) { /> )}
- - {/* Right: Sidebar — sticky so icon strip stays visible */} -
-
- -
-
);