From 48a3e12d381bb77140a9eb0f593b1bd25086e6c3 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Fri, 26 Jun 2026 07:02:38 -0700 Subject: [PATCH] [eric] browser: remove the opaque cover-overlay hack (unreliable over media-heavy pages like Discord, and a hack) --- .../src/app/pages/Dashboard/cards/BrowserCard.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/pages/Dashboard/cards/BrowserCard.tsx b/frontend/src/app/pages/Dashboard/cards/BrowserCard.tsx index 62971f34..4e88f1a2 100644 --- a/frontend/src/app/pages/Dashboard/cards/BrowserCard.tsx +++ b/frontend/src/app/pages/Dashboard/cards/BrowserCard.tsx @@ -753,11 +753,10 @@ const BrowserCard: React.FC = ({ top: displayY, width: displayW, height: displayH, - borderRadius: keepAliveHidden ? 0 : `${c.radius.lg}px`, - // A hidden cross-dashboard card drops its border/shadow so the cover overlay below blends fully into the dashboard background instead of reading as a card outline. - border: keepAliveHidden ? 'none' : agentBorder, - bgcolor: keepAliveHidden ? c.bg.page : c.bg.surface, - boxShadow: keepAliveHidden ? 'none' : agentShadow, + borderRadius: `${c.radius.lg}px`, + border: agentBorder, + bgcolor: c.bg.surface, + boxShadow: agentShadow, overflow: 'hidden', display: 'flex', flexDirection: 'column', @@ -1485,10 +1484,6 @@ const BrowserCard: React.FC = ({ /> ))} - {/* Cover the whole card (incl. the webview surface) with an opaque dashboard-colored layer when it's a kept-alive card from another dashboard: the guest stays composited underneath so its login survives, but it can't bleed onto the dashboard you're viewing. Host DOM does paint over a (same as the agent overlay), which CSS visibility/off-screen can't reliably do without killing the session. */} - {keepAliveHidden && ( - - )} ); };