The best way to control Claude Code, Codex and more from any computer or phone
fix(web): keep browser pages aligned during panel animations (#12329)
Julius Marminge committed
Sep 17, 2026 at 16:29 UTC
4cc984fedc33184c0a0fb67ea17fb02902ae2224
1 file changed
+4
apps/web/src/browser/BrowserSurfaceSlot.tsx
+4
@@ -64,6 +64,10 @@ export function BrowserSurfaceSlot(props: {
64
update();
65
const observer = new ResizeObserver(update);
66
observer.observe(element);
67
+ // Inline panels animate their outer width while keeping the content at
68
+ // full width. The slot moves without resizing, so measure on shell resizes too.
69
+ const panel = element.closest('[data-preview-panel-mode="inline"]');
70
+ if (panel) observer.observe(panel);
71
window.addEventListener("resize", update);
72
window.addEventListener("scroll", update, true);
73
return () => {