Файли
openidea/src/features/vcs/clone.module.css
T
l0ng-ai 170fd735dd fix(vcs): keep clone fields usable in narrow dialogs (#4618)
Clone dialog fields stay usable and inside the dialog in narrow windows. Verified with e2e cloneLayout, vcs vitest and typecheck.
2026-11-20 08:22:11 +08:00

193 рядки
3.8 KiB
CSS

.dialog {
height: min(660px, calc(100vh - 48px));
min-height: min(480px, calc(100vh - 48px));
}
.dialog [data-dialog-body] {
display: flex;
overflow: hidden;
}
.dialog [data-dialog-footer] {
border-top: 1px solid var(--border);
}
.dialogTitle {
display: inline-flex;
align-items: center;
gap: var(--space-2);
}
.dialogTitle img {
width: 20px;
height: 20px;
}
.layout {
flex: 1;
min-width: 0;
min-height: 0;
display: flex;
}
.sidebar {
flex: 0 0 200px;
padding: var(--space-2) 0;
border-right: 1px solid var(--border);
background: color-mix(in srgb, var(--bg-dialog, var(--bg-elev)) 96%, var(--fg-strong));
overflow: auto;
}
.sourceItem {
min-height: var(--h-row);
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-1) var(--space-3);
width: 100%;
border: 0;
background: none;
color: var(--fg-strong);
font: inherit;
text-align: left;
cursor: default;
}
.sourceItem[data-selected] {
background: var(--bg-tree-selected);
}
.sourceName {
min-width: 0;
overflow-wrap: anywhere;
font-weight: 500;
font-size: var(--fs-ui);
line-height: 1.4;
}
.form {
--clone-label-width: 112px;
--clone-field-gap: var(--space-3);
flex: 1;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
gap: var(--space-3);
overflow: auto;
padding: var(--space-4);
font-size: var(--fs-ui);
}
.fieldRow {
display: grid;
grid-template-columns: var(--clone-label-width) minmax(0, 1fr);
align-items: center;
gap: var(--clone-field-gap);
}
.fieldRow > label {
color: var(--fg-strong);
overflow-wrap: anywhere;
}
.versionSelect {
width: min(138px, 100%);
}
.comboField {
min-width: 0;
height: var(--h-field, 28px);
display: flex;
align-items: center;
border-radius: var(--radius-control, 4px);
background: var(--bg-field, var(--bg-button));
box-shadow: inset 0 0 0 1px var(--border-button);
}
.comboField:focus-within {
box-shadow:
inset 0 0 0 1px var(--focus-ring),
0 0 0 1px var(--focus-ring);
}
.fieldInput {
flex: 1;
height: 100%;
padding-inline: var(--space-2);
background: transparent;
}
.fieldButton {
width: 34px;
height: 26px;
border-radius: 0 var(--radius-control, 4px) var(--radius-control, 4px) 0;
border-left: 1px solid var(--border);
}
.shallowRow {
min-width: 0;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
}
.shallowRow,
.feedback {
padding-inline-start: calc(var(--clone-label-width) + var(--clone-field-gap));
}
.depthGroup {
display: inline-flex;
align-items: center;
gap: var(--space-2);
max-width: 100%;
min-width: 0;
overflow-wrap: anywhere;
}
.depthInput {
width: 84px;
}
.feedback {
min-width: 0;
}
.progress {
display: flex;
flex-direction: column;
gap: var(--space-1-5);
min-width: 0;
}
.progress > span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.hint {
color: var(--fg-subtle);
font-size: var(--fs-small);
line-height: 1.5;
overflow-wrap: anywhere;
}
.error {
color: var(--danger);
font-size: var(--fs-small);
overflow-wrap: anywhere;
}
.layout[data-compact] {
flex-direction: column;
}
.layout[data-compact] .sidebar {
flex: 0 1 auto;
display: flex;
flex-wrap: wrap;
align-content: flex-start;
gap: var(--space-1);
max-height: min(120px, 32%);
padding: var(--space-1);
border-right: 0;
border-bottom: 1px solid var(--border);
}
.layout[data-compact] .sourceItem {
width: auto;
max-width: 100%;
border-radius: var(--radius-row);
}
.layout[data-compact] .form {
--clone-label-width: 104px;
}
.layout[data-compact] .shallowRow {
padding-inline-start: 0;
}
.sidebar .sourceItem:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: -2px;
}
.sourcePane {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}