@devries-cameron20 / t3code Mirror · read-only / commits / 2df750e0c9
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 08:30 UTC

fix(web): MCP app full screen header clears the native window controls (#38303)

Julius Marminge committed Nov 17, 2026 at 11:50 UTC 2df750e0c94559c9e917d68826f642499e9c9a1c
1 file changed +4
apps/web/src/components/chat/McpAppFrame.tsx
+4
@@ -36,6 +36,7 @@ import { useTurnItemDetail } from "~/state/queries";
36 import { mcpAppEnvironment } from "~/state/mcpApps";
37 import { useAtomCommand } from "~/state/use-atom-command";
38 import { observeResize } from "~/lib/observeResize";
39 +import { useNativeTitlebarHeight } from "~/lib/windowControlsOverlay";
40
41 const commandFailure = (result: {
42 readonly cause: Parameters<typeof squashAtomCommandFailure>[0]["cause"];
@@ -90,6 +91,7 @@ export function McpAppFrame(props: {
91 }) {
92 const { app } = props;
93 const theme = useHtmlRenderTheme();
94 + const nativeTitlebarHeight = useNativeTitlebarHeight();
95 const frameRef = useRef<HTMLIFrameElement>(null);
96 const boxRef = useRef<HTMLDivElement>(null);
97 const [width, setWidth] = useState(0);
@@ -453,6 +455,8 @@ export function McpAppFrame(props: {
455 ? "fixed inset-0 m-0 flex h-dvh max-h-none w-dvw max-w-none flex-col border-0 bg-background p-0"
456 : "block! static! m-0 border-0 bg-transparent p-0 text-inherit",
457 )}
458 + // Keep the header clear of the native window controls.
459 + style={fullscreen ? { paddingTop: nativeTitlebarHeight } : undefined}
460 >
461 {fullscreen ? (
462 <div