Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(views): restore quick create dialog height (#7596)

Jiayuan Zhang76aada3a9a4e
diff --git a/packages/views/modals/create-issue-dialog.test.tsx b/packages/views/modals/create-issue-dialog.test.tsx
index deab54fb77..535d22e12d 100644
--- a/packages/views/modals/create-issue-dialog.test.tsx
+++ b/packages/views/modals/create-issue-dialog.test.tsx
@@ -136,11 +136,11 @@ describe("CreateIssueDialog sizing", () => {
expect(contentClass()).toContain("sm:!max-w-xl");
});
- it("uses the same explicit collapsed height as manual mode", () => {
+ it("keeps the ordinary agent dialog content-driven", () => {
render(<CreateIssueDialog onClose={vi.fn()} initialMode="agent" />);
- expect(contentClass()).toContain("!h-96");
- expect(contentClass()).not.toContain("!max-h-[80dvh]");
+ expect(contentClass()).toContain("!max-h-[80dvh]");
+ expect(contentClass()).not.toContain("!h-96");
});
it("hands manual mode its own sizing", () => {
diff --git a/packages/views/modals/create-issue-dialog.tsx b/packages/views/modals/create-issue-dialog.tsx
index 690cf73003..35aa6a2bad 100644
--- a/packages/views/modals/create-issue-dialog.tsx
+++ b/packages/views/modals/create-issue-dialog.tsx
@@ -146,14 +146,17 @@ function CreateIssueDialogBody({
// against both screen edges on a 430px viewport (MUL-6236). Restore
// the margin here and let the `sm:` widths take over above 640px.
"!w-full !max-w-[calc(100vw-1.5rem)]",
- // Match manual mode's explicit heights. Both endpoints are numeric,
- // so the existing transition can interpolate the height instead of
- // jumping from an intrinsic `auto` size to `h-5/6`.
+ // Source-context create needs numeric collapsed/expanded endpoints
+ // so its preview transition can interpolate the height. Ordinary
+ // quick create has no expanding preview and keeps its original
+ // content-driven height, capped for mobile browser chrome.
isExpanded
? "!h-5/6 sm:!max-w-4xl"
- : sourceContextExpanded
- ? "!h-5/6 sm:!max-w-2xl"
- : "!h-96 sm:!max-w-xl",
+ : sourceContextData
+ ? sourceContextExpanded
+ ? "!h-5/6 sm:!max-w-2xl"
+ : "!h-96 sm:!max-w-xl"
+ : "!max-h-[80dvh] sm:!max-w-xl",
)
: cn(
manualDialogContentClass(isExpanded),