From d1f311d2a358e33b7e9aa57fbd30e7d7657cb8b2 Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Fri, 4 Dec 2026 03:45:13 +0800 Subject: [PATCH] fix(svn): line up the Merge dialog's fields (#7877) Source branch/Source URL and Whitespace handling/Depth each share one grid, so their fields start at the same x. --- src/features/vcs/svnMerge.tsx | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/features/vcs/svnMerge.tsx b/src/features/vcs/svnMerge.tsx index 6182f464db..8475f4b5ab 100644 --- a/src/features/vcs/svnMerge.tsx +++ b/src/features/vcs/svnMerge.tsx @@ -8,6 +8,7 @@ import { call, commands, nextRequestId } from "@/platform/ipc"; import { Button, Checkbox, Dialog, Input, Select, Spinner, T } from "@/ui"; import { notifications } from "@/workbench/contributions"; import { groupOf } from "./changes"; +import clsx from "clsx"; import commonStyles from "./common.module.css"; import { openDialog } from "./dialogs"; import { rootOf } from "./model"; @@ -382,21 +383,21 @@ export function SvnMergeDialog({ width={620} >
- {branchUrls.length > 0 && ( -
- - Source branch - - c.value === sourceUrl) ? sourceUrl : ""} + onChange={(v) => { + if (v) setSourceUrl(v); + }} + options={[{ value: "", label: tx("(custom URL)") }, ...branchUrls]} + /> + + )} Source URL @@ -487,7 +488,7 @@ export function SvnMergeDialog({ /> -
+
Whitespace handling @@ -496,8 +497,6 @@ export function SvnMergeDialog({ onChange={(v) => setIgnoreWhitespace(v as WhitespaceIgnoreMode)} options={MERGE_WHITESPACE_OPTIONS} /> -
-
Depth