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.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-12-04 03:45:13 +08:00
1 джерело 52e81f8158
коміт d1f311d2a3
1 file changed
+17 -18
+17 -18
Переглянути файл
@@ -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}
>
<div className={commonStyles.form}>
{branchUrls.length > 0 && (
<div className={commonStyles.inlinePrompt}>
<span className={commonStyles.fieldLabel}>
<T>Source branch</T>
</span>
<Select
value={branchUrls.some((c) => c.value === sourceUrl) ? sourceUrl : ""}
onChange={(v) => {
if (v) setSourceUrl(v);
}}
options={[{ value: "", label: tx("(custom URL)") }, ...branchUrls]}
/>
</div>
)}
<div className={commonStyles.inlinePrompt}>
<div className={clsx(commonStyles.inlinePrompt, styles.fieldRows)}>
{branchUrls.length > 0 && (
<>
<span className={commonStyles.fieldLabel}>
<T>Source branch</T>
</span>
<Select
value={branchUrls.some((c) => c.value === sourceUrl) ? sourceUrl : ""}
onChange={(v) => {
if (v) setSourceUrl(v);
}}
options={[{ value: "", label: tx("(custom URL)") }, ...branchUrls]}
/>
</>
)}
<span className={commonStyles.fieldLabel}>
<T>Source URL</T>
</span>
@@ -487,7 +488,7 @@ export function SvnMergeDialog({
/>
<Checkbox checked={ignoreAncestry} onChange={setIgnoreAncestry} label="Ignore ancestry" />
<Checkbox checked={force} onChange={setForce} label="Force merge" />
<div className={commonStyles.inlinePrompt}>
<div className={clsx(commonStyles.inlinePrompt, styles.fieldRows)}>
<span className={commonStyles.fieldLabel}>
<T>Whitespace handling</T>
</span>
@@ -496,8 +497,6 @@ export function SvnMergeDialog({
onChange={(v) => setIgnoreWhitespace(v as WhitespaceIgnoreMode)}
options={MERGE_WHITESPACE_OPTIONS}
/>
</div>
<div className={commonStyles.inlinePrompt}>
<span className={commonStyles.fieldLabel}>
<T>Depth</T>
</span>