fix(vcs): align the New Worktree dialog (#5367)

- Align the repository, checkout, branch, name, location and setup fields in one label-and-control grid. Use the standard dialog type size for labels and keep the worktree path preview beneath the Location field.
- Let the `.worktreeinclude` edit action wrap below its checkbox in narrow windows. With setup expanded, the standard dialog is about 118 logical pixels shorter, and the setup field fits without scrolling in a 440 × 520 window.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-23 15:17:34 +08:00
1 джерело a6a05caa2e
коміт 31b265cb41
3 files changed
+244 -113

No files matched your search

+33
Переглянути файл
@@ -791,6 +791,36 @@
align-items: center;
gap: var(--space-0-5);
}
.worktreeFields {
display: grid;
grid-template-columns: fit-content(44%) minmax(0, 1fr);
align-items: center;
gap: var(--space-2) var(--space-3);
}
.worktreeFields > :not(.worktreeLabel) {
grid-column: 2;
min-width: 0;
}
.worktreeLabel {
grid-column: 1;
min-width: 0;
font-size: var(--fs-ui);
overflow-wrap: anywhere;
}
.worktreeFields > .worktreeOptions {
display: flex;
flex-direction: column;
grid-column: 1 / -1;
gap: var(--space-2);
border-top: 1px solid var(--border);
padding-top: var(--space-2);
}
.worktreeCopyOptions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-1) var(--space-2);
}
.worktreeLocation {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
@@ -801,6 +831,9 @@
color: var(--fg-muted);
overflow-wrap: anywhere;
}
.worktreeFields > .worktreeTarget {
font-size: var(--fs-small);
}
.comparisonDialog > [data-dialog-body] {
display: flex;
flex-direction: column;