Skip to content
TypeScript

fix(web): maximized right panel no longer doubles the sidebar border (#18939)

Akash Moradiya06ce02f194d1
diff --git a/apps/web/src/components/preview/PreviewPanelShell.tsx b/apps/web/src/components/preview/PreviewPanelShell.tsx
index 1fba7771c11..6405b610221 100644
--- a/apps/web/src/components/preview/PreviewPanelShell.tsx
+++ b/apps/web/src/components/preview/PreviewPanelShell.tsx
@@ -113,7 +113,9 @@ function PreviewPanelShellFrame(
"relative flex h-full min-h-0 min-w-0 max-w-full flex-col self-stretch bg-background",
isInline
? maximized
- ? "flex-1 border-l border-border"
+ ? // Maximized, the panel's left edge meets the sidebar's own border
+ // (or the window edge), so a second border would double it.
+ "flex-1"
: "shrink-0 border-l border-border"
: "w-full",
collapsible &&