@devries-cameron20 / t3code Mirror · read-only / commits / fd6d9ddaab
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 23, 14:15 UTC

fix(web): hide stash menu behind maximized panel (#18115)

Co-authored-by: maria <maria@kuuro.net>

Saikrishna Ambeti committed Oct 12, 2026 at 07:23 UTC fd6d9ddaab241f60a1ad3c2b7b1d836cf871447f
1 file changed +6 -1
apps/web/src/components/chat/ChatComposer.tsx
+6 -1
@@ -1017,6 +1017,11 @@ function ComposerCommandMenuLayer(props: { anchor: HTMLElement | null; children:
1017 window.getComputedStyle(form ?? anchor).getPropertyValue("--chat-composer-drawer-inset"),
1018 );
1019 const drawerInset = drawerInsetRem * rootFontSizePx;
1020 + const width = rect.width - drawerInset * 2;
1021 + if (width <= 0) {
1022 + setPosition(null);
1023 + return;
1024 + }
1025 // One extra pixel prevents fractional layout coordinates from exposing
1026 // the canvas between the drawer mask and the composer's foreground edge.
1027 // Mirrors --chat-composer-attachment-overlap: calc(1rem + 1px).
@@ -1025,7 +1030,7 @@ function ComposerCommandMenuLayer(props: { anchor: HTMLElement | null; children:
1030 bottom: window.innerHeight - rect.top - composerOverlap,
1031 left: rect.left + drawerInset,
1032 maxHeight: Math.max(96, rect.top - 24 + composerOverlap),
1028 - width: Math.max(0, rect.width - drawerInset * 2),
1033 + width,
1034 };
1035 setPosition((current) =>
1036 current && composerCommandMenuPositionsEqual(current, next) ? current : next,