Skip to content

Commit ec57ac8

Browse files
committed
2 parents 7144fec + c3540a7 commit ec57ac8

4 files changed

Lines changed: 6 additions & 14 deletions

File tree

‎apps/web/src/components/chat/ChatComposer.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7170,7 +7170,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
71707170
showMobilePendingAnswerActions && "max-sm:pb-12",
71717171
isComposerResting &&
71727172
"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",
71747174
)}
71757175
placeholderClassName={cn(
71767176
isComposerResting &&

‎apps/web/src/components/chat/ComposerPendingApprovalActions.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const ComposerPendingApprovalActions = memo(function ComposerPendingAppro
8181
>
8282
<EllipsisIcon />
8383
</MenuTrigger>
84-
<MenuPopup {...composerFloatingLayerProps} side="top" align="end">
84+
<MenuPopup {...composerFloatingLayerProps} side="top" align="end" width="content">
8585
{moreOptions.map((option) => {
8686
const item = (
8787
<MenuItem
@@ -92,8 +92,6 @@ export const ComposerPendingApprovalActions = memo(function ComposerPendingAppro
9292
if (!disabled && !isResponding)
9393
void onRespondToApproval(requestId, option.decision);
9494
}}
95-
variant="ghost"
96-
className="mb-1 last:mb-0"
9795
>
9896
{option.warning ? <TriangleAlertIcon className="size-3 text-warning" /> : null}
9997
<span className="min-w-0 whitespace-normal wrap-break-word">{option.label}</span>

‎apps/web/src/components/chat/MessagesTimeline.browser.test.tsx‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@ vi.mock(import("~/state/query"), async (original) => ({
4343
})) as never,
4444
}));
4545

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-
5546
const ENVIRONMENT_ID = EnvironmentId.make("environment-local");
5647
const CREATED_AT = "2026-03-17T19:12:28.000Z";
5748

‎apps/web/src/components/ui/menu.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function MenuPopup({
2626
side = "bottom",
2727
anchor,
2828
keepMounted = false,
29+
width = "default",
2930
...props
3031
}: MenuPrimitive.Popup.Props & {
3132
align?: MenuPrimitive.Positioner.Props["align"];
@@ -34,6 +35,7 @@ function MenuPopup({
3435
side?: MenuPrimitive.Positioner.Props["side"];
3536
anchor?: MenuPrimitive.Positioner.Props["anchor"];
3637
keepMounted?: boolean;
38+
width?: "default" | "content";
3739
}) {
3840
return (
3941
<MenuPrimitive.Portal keepMounted={keepMounted}>
@@ -53,7 +55,8 @@ function MenuPopup({
5355
// the Review panel header). Drag hit-testing ignores z-index, so
5456
// the topmost row would stay unhoverable without this opt-out.
5557
"[-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))]",
5760
className,
5861
)}
5962
data-slot="menu-popup"

0 commit comments

Comments
 (0)