@devries-cameron20 / t3code-1 / commits / a6698271a4
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): chat content keeps pace with sidebar resizing (#17383)

oliver committed Oct 9, 2026 at 08:56 UTC a6698271a41a4c1f2c42f25ca5d69cd7d1fa9c30
1 file changed +2 -1
apps/web/src/components/chat/ChatCanvas.tsx
+2 -1
@@ -7,6 +7,7 @@ import {
7 type ComponentProps,
8 type CSSProperties,
9 } from "react";
10 +import { flushSync } from "react-dom";
11 import { ChatCanvasContext } from "./ChatCanvasContext";
12 import { resolveChatCanvasLayout, type ChatCanvasPreview } from "./chatCanvasLayout";
13 import type { PreviewMiniPlayerObstacles } from "../preview/previewMiniPlayerLayout";
@@ -90,7 +91,7 @@ export function ChatCanvas({
91 );
92 };
93 measure();
93 - const observer = new ResizeObserver(measure);
94 + const observer = new ResizeObserver(() => flushSync(measure));
95 observer.observe(element);
96 observer.observe(probe);
97 if (composerOverlayElement) observer.observe(composerOverlayElement);