Fix mobile issue chat bubble width

This commit is contained in:
Dotta committed 2026-06-19 04:04:48 +00:00
1 parent 67c98323b0
commit 35bcaca643
2 files changed
+6 -1

No files matched your search

@@ -1369,6 +1369,8 @@ describe("IssueChatThread", () => {
);
expect(bubble).toBeDefined();
expect(bubble?.textContent).toContain("Here is my agent reply.");
expect(bubble?.className).toContain("max-w-[calc(100%-0.5rem)]");
expect(bubble?.className).toContain("sm:max-w-[85%]");
// Neutral, not the human liveness-blue bubble.
expect(bubble?.className).not.toContain("bg-[#2563EB]");
+4 -1
View File
@@ -221,6 +221,8 @@ const IssueChatCtx = createContext<IssueChatMessageContext>({
successfulRunHandoff: null,
});
const AGENT_COMMENT_BUBBLE_WIDTH_CLASS = "max-w-[calc(100%-0.5rem)] sm:max-w-[85%]";
export type IssueChatRunFinalizationAction = {
id: "cancel" | "done";
label: string;
@@ -1720,7 +1722,8 @@ function IssueChatAssistantMessage({
{/* Canonical conference-room agent bubble (BoardChat.tsx:712). */}
<div
className={cn(
"min-w-0 max-w-[85%] break-words px-3 py-2 text-sm overflow-x-auto overflow-y-visible [border-radius:14px_14px_14px_4px]",
"min-w-0 break-words px-3 py-2 text-sm overflow-x-auto overflow-y-visible [border-radius:14px_14px_14px_4px]",
AGENT_COMMENT_BUBBLE_WIDTH_CLASS,
deleted
? "border border-border bg-muted/50 text-muted-foreground"
: "border border-border bg-card text-foreground",