Файли
openidea/src/features/run-anything/RunAnything.module.css
T
l0ng-ai 8daaef38d9 fix(run): keep Run Anything controls visible on short windows (#4581)
Run Anything had a fixed 620px popup with a 360px list cap and a footer that could fall off short windows. The popup now fits the viewport as a column whose list shrinks, uses the shared search field with combobox semantics, shows the completion of the selected entry in the field, pages by the visible row count (compact-aware), and keeps a wrapping footer with the navigation hints.
2026-11-20 03:39:37 +08:00

134 рядки
2.4 KiB
CSS

.popup {
display: flex;
flex-direction: column;
width: min(670px, calc(100vw - 32px));
overflow: hidden;
}
.body {
flex: 1 1 auto;
display: flex;
flex-direction: column;
min-height: 0;
font-family: var(--font-ui);
}
.header {
flex: none;
display: flex;
align-items: center;
gap: var(--space-2);
min-height: var(--h-field);
padding: var(--space-0-5) var(--space-3);
border-bottom: 1px solid var(--border-popup);
background: var(--bg-frame, var(--bg-app));
}
.title {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: var(--fs-ui);
font-weight: 600;
color: var(--fg-strong);
}
.link {
flex: none;
max-width: 50%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 0;
border: 0;
background: none;
color: var(--link);
font-size: var(--fs-small);
cursor: pointer;
}
.link:hover {
color: var(--link-hover);
}
.query {
flex: none;
padding: var(--space-2);
}
.rows {
flex: 1 1 auto;
min-height: var(--h-row);
max-height: 600px;
overflow-x: hidden;
}
.section {
display: flex;
align-items: center;
width: 100%;
gap: var(--space-3);
padding: 0;
font-size: var(--fs-small);
color: var(--fg-subtle);
}
.section::after {
content: "";
flex: 1;
height: 1px;
background: var(--border-popup);
}
.row {
display: flex;
align-items: center;
gap: var(--space-2);
min-width: 0;
flex: 1;
}
.rowIcon {
flex: none;
color: var(--fg-muted);
}
.label {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: pre;
font-family: var(--font-ui);
font-size: var(--fs-ui);
color: var(--fg-emphasis);
}
.activeRow .label {
color: var(--fg-strong);
}
.detail {
flex: 0 1 auto;
min-width: 0;
max-width: min(36%, 26ch);
overflow: hidden;
text-overflow: ellipsis;
margin-left: auto;
color: var(--fg-subtle);
font-size: var(--fs-small);
white-space: nowrap;
}
.activeRow .detail {
color: var(--fg);
}
.empty {
padding: var(--space-1) var(--space-3) var(--space-2);
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.footer {
flex: none;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-0-5) var(--space-3);
padding: var(--space-1-5) var(--space-3);
border-top: 1px solid var(--border-popup);
font-size: var(--fs-small);
color: var(--fg-subtle);
}
.navigationHint {
display: inline-flex;
align-items: center;
gap: var(--space-1);
}