Файли
openidea/src/features/scratch/ScratchChooser.module.css
T
l0ng-ai 844e290729 Keep the scratch language chooser usable in short windows (#4750)
The scratch file language chooser keeps its search field and list usable in short windows instead of overflowing.
2026-11-20 19:40:24 +08:00

60 рядки
1.0 KiB
CSS

.popup {
width: 320px;
display: flex;
flex-direction: column;
overflow: hidden;
}
.body {
display: flex;
flex-direction: column;
min-height: 0;
padding-bottom: var(--space-1);
font-size: var(--fs-ui);
}
.header {
flex: none;
display: flex;
align-items: center;
padding: var(--space-2) var(--space-3) var(--space-1);
color: var(--fg-strong);
line-height: 1.4;
}
.search {
flex: none;
margin: 0 var(--space-2) var(--space-1);
border-bottom: 1px solid var(--border-popup);
}
.list {
max-height: calc(20 * var(--h-list-row) + var(--space-2));
}
.divider {
width: 100%;
height: 1px;
background: var(--border-popup);
}
.row {
display: flex;
align-items: center;
gap: var(--space-2);
min-width: 0;
flex: 1;
}
.label {
min-width: 0;
color: var(--fg-emphasis);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.icon {
flex: none;
}
.active .label {
color: var(--fg-strong);
}
.empty {
padding: 6px 10px;
color: var(--fg-faint);
font-size: var(--fs-small);
}