From b2f7252b27a8a9fa9212ad17a3df5c0b65bd6b14 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 17 Mar 2026 09:49:12 -0500 Subject: [PATCH] Fix empty space in new issue pane when workspaces disabled The execution workspace section wrapper div was rendered whenever a project was selected, even when experimental workspaces were off. The empty div's py-3 padding caused a visible layout bump. Now the entire block only renders when currentProjectSupportsExecutionWorkspace is true, and the redundant inner conditional is removed. Co-Authored-By: Paperclip Co-Authored-By: Claude Opus 4.6 --- ui/src/components/NewIssueDialog.tsx | 74 ++++++++++++++-------------- 1 file changed, 36 insertions(+), 38 deletions(-) diff --git a/ui/src/components/NewIssueDialog.tsx b/ui/src/components/NewIssueDialog.tsx index a734fbd5..ad8efb67 100644 --- a/ui/src/components/NewIssueDialog.tsx +++ b/ui/src/components/NewIssueDialog.tsx @@ -1117,51 +1117,49 @@ export function NewIssueDialog() { - {currentProject && ( + {currentProject && currentProjectSupportsExecutionWorkspace && (
- {currentProjectSupportsExecutionWorkspace && ( -
-
Execution workspace
-
- Control whether this issue runs in the shared workspace, a new isolated workspace, or an existing one. -
+
+
Execution workspace
+
+ Control whether this issue runs in the shared workspace, a new isolated workspace, or an existing one. +
+ + {executionWorkspaceMode === "reuse_existing" && ( - {executionWorkspaceMode === "reuse_existing" && ( - - )} - {executionWorkspaceMode === "reuse_existing" && selectedReusableExecutionWorkspace && ( -
- Reusing {selectedReusableExecutionWorkspace.name} from {selectedReusableExecutionWorkspace.branchName ?? selectedReusableExecutionWorkspace.cwd ?? "existing execution workspace"}. -
- )} -
- )} + )} + {executionWorkspaceMode === "reuse_existing" && selectedReusableExecutionWorkspace && ( +
+ Reusing {selectedReusableExecutionWorkspace.name} from {selectedReusableExecutionWorkspace.branchName ?? selectedReusableExecutionWorkspace.cwd ?? "existing execution workspace"}. +
+ )} +
)}