@devries-cameron20 / t3code Mirror · read-only / commits / d356059c84
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 22, 20:45 UTC

fix(web): keep approval menu actions compact (#22566)

Yash Singh committed Oct 20, 2026 at 19:07 UTC d356059c84cfcd8c3a7d3a2042e8b3637c5a40e8
4 files changed +6 -14
apps/web/src/components/chat/ChatComposer.tsx
+1 -1
@@ -7170,7 +7170,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
7170 showMobilePendingAnswerActions && "max-sm:pb-12",
7171 isComposerResting &&
7172 "my-0 max-h-8 min-h-8 overflow-hidden py-0 whitespace-pre! leading-8",
7173 - isComposerApprovalState && "min-h-10",
7173 + isComposerApprovalState && "min-h-0",
7174 )}
7175 placeholderClassName={cn(
7176 isComposerResting &&
apps/web/src/components/chat/ComposerPendingApprovalActions.tsx
+1 -3
@@ -81,7 +81,7 @@ export const ComposerPendingApprovalActions = memo(function ComposerPendingAppro
81 >
82 <EllipsisIcon />
83 </MenuTrigger>
84 - <MenuPopup {...composerFloatingLayerProps} side="top" align="end">
84 + <MenuPopup {...composerFloatingLayerProps} side="top" align="end" width="content">
85 {moreOptions.map((option) => {
86 const item = (
87 <MenuItem
@@ -92,8 +92,6 @@ export const ComposerPendingApprovalActions = memo(function ComposerPendingAppro
92 if (!disabled && !isResponding)
93 void onRespondToApproval(requestId, option.decision);
94 }}
95 - variant="ghost"
96 - className="mb-1 last:mb-0"
95 >
96 {option.warning ? <TriangleAlertIcon className="size-3 text-warning" /> : null}
97 <span className="min-w-0 whitespace-normal wrap-break-word">{option.label}</span>
apps/web/src/components/chat/MessagesTimeline.browser.test.tsx
-9
@@ -43,15 +43,6 @@ vi.mock(import("~/state/query"), async (original) => ({
43 })) as never,
44 }));
45
46 -// The first Mermaid render loads the library and its flowchart chunks, which took over
47 -// 10 seconds on a busy release runner. Pay that while the file loads, not inside a test.
48 -{
49 - const { default: mermaid } = await import("mermaid");
50 - mermaid.initialize({ startOnLoad: false });
51 - await mermaid.render("mermaid-warmup", "flowchart LR\n A --> B");
52 - document.getElementById("dmermaid-warmup")?.remove();
53 -}
54 -
46 const ENVIRONMENT_ID = EnvironmentId.make("environment-local");
47 const CREATED_AT = "2026-03-17T19:12:28.000Z";
48
apps/web/src/components/ui/menu.tsx
+4 -1
@@ -26,6 +26,7 @@ function MenuPopup({
26 side = "bottom",
27 anchor,
28 keepMounted = false,
29 + width = "default",
30 ...props
31 }: MenuPrimitive.Popup.Props & {
32 align?: MenuPrimitive.Positioner.Props["align"];
@@ -34,6 +35,7 @@ function MenuPopup({
35 side?: MenuPrimitive.Positioner.Props["side"];
36 anchor?: MenuPrimitive.Positioner.Props["anchor"];
37 keepMounted?: boolean;
38 + width?: "default" | "content";
39 }) {
40 return (
41 <MenuPrimitive.Portal keepMounted={keepMounted}>
@@ -53,7 +55,8 @@ function MenuPopup({
55 // the Review panel header). Drag hit-testing ignores z-index, so
56 // the topmost row would stay unhoverable without this opt-out.
57 "[-webkit-app-region:no-drag]",
56 - "min-w-[min(10rem,calc(100vw-2rem))] max-w-[calc(100vw-2rem)]",
58 + "max-w-[calc(100vw-2rem)]",
59 + width === "content" ? "w-max min-w-0" : "min-w-[min(10rem,calc(100vw-2rem))]",
60 className,
61 )}
62 data-slot="menu-popup"