[eric] browser: go back to off-screen parking for cross-dashboard cards (reload-probe PROVES off-screen keeps the login; on-screen visibility just ghosts through)

This commit is contained in:
ciregenz
2026-06-26 07:13:17 -07:00
parent 48a3e12d38
commit 6094b16986
@@ -742,14 +742,13 @@ const BrowserCard: React.FC<Props> = ({
}}
sx={{
position: 'absolute',
// Kept-alive card from another dashboard: hidden via visibility but LEFT AT ITS NORMAL POSITION on purpose. Moving it off-screen makes Chromium occlusion-cull the guest, which drops a logged-in session (Discord logs out); keeping it on-screen keeps the webContents composited + alive so the login survives. Click-through so it never eats input.
visibility: keepAliveHidden ? 'hidden' : undefined,
// Kept-alive card from another dashboard: parked far off-screen so its webview surface can't bleed onto the dashboard you're viewing; click-through, webContents stays mounted.
pointerEvents: keepAliveHidden ? 'none' : undefined,
// contain: webview repaints don't shake neighbor cards.
contain: 'layout style',
// Own compositor layer so hover/paint invalidations stay contained to this card. See AgentCard for full rationale.
willChange: 'transform',
left: displayX,
left: keepAliveHidden ? -100000 : displayX,
top: displayY,
width: displayW,
height: displayH,