Файли
openidea/src/features/vcs/ChangelistForm.module.css
T
l0ng-ai 31ca9daa61 fix(vcs): align the target changelist dialog (#4947)
Put existing and new target changelists in one editable **Name** field. Open the list to pick an existing target or enter a name to make a new one. The comment and active status sit in the same place for both choices. Undo Commit offers the commit subject as a suggested name.
2026-11-21 11:57:07 +08:00

83 рядки
1.6 KiB
CSS

.form {
display: grid;
grid-template-columns: max-content minmax(0, 1fr);
align-items: start;
gap: var(--space-2) var(--space-3);
padding: var(--space-3) var(--space-4);
}
.nameLabel,
.commentLabel {
max-inline-size: 12em;
color: var(--fg);
font-size: var(--fs-ui);
overflow-wrap: anywhere;
}
.nameLabel {
display: flex;
align-items: center;
min-block-size: var(--h-field);
}
.commentLabel {
padding-block-start: var(--space-1);
}
.nameField {
display: flex;
flex-direction: column;
gap: var(--space-1);
min-width: 0;
}
.hint {
grid-column: 1 / -1;
color: var(--fg-subtle);
}
.picker {
display: flex;
align-items: center;
gap: var(--space-1);
min-width: 0;
padding-inline-end: var(--space-1);
border-radius: var(--radius-control);
background: var(--bg-field, var(--bg-button));
box-shadow: inset 0 0 0 1px var(--border-button);
}
.picker:focus-within,
.picker[data-open] {
box-shadow:
inset 0 0 0 1px var(--focus-ring),
0 0 0 1px var(--focus-ring);
}
.picker[data-invalid] {
box-shadow:
inset 0 0 0 1px var(--danger),
0 0 0 1px var(--danger);
}
.picker > input {
flex: 1;
padding-inline-start: var(--space-2);
}
.newName {
color: var(--vcs-added);
font-size: var(--fs-small);
}
.form > textarea {
min-width: 0;
}
.form > textarea[readonly] {
color: var(--fg-secondary);
}
.active {
grid-column: 1 / -1;
justify-self: start;
}
@media (max-width: 440px) {
.form {
grid-template-columns: minmax(0, 1fr);
}
.nameLabel,
.commentLabel {
max-inline-size: none;
min-block-size: 0;
padding-block-start: 0;
}
}