Файли
openidea/src/features/settings/keymap/Keymap.module.css
T
l0ng-ai 737afc6a8d Keep keymap search and shortcuts readable in narrow settings (#4632)
Keymap settings group the scheme selector with its actions and move the search controls to a second line in narrow settings; long action names scroll inside the tree. Verified with e2e keymapLayout/compactSettingsControls, settings vitest and typecheck.
2026-11-20 09:11:52 +08:00

251 рядки
4.2 KiB
CSS

.page {
display: flex;
flex-direction: column;
gap: var(--space-2);
height: 100%;
min-height: 0;
min-width: 0;
}
.presetRow,
.toolbar {
display: flex;
flex: none;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--space-1) var(--space-2);
}
.presetGroup {
display: flex;
align-items: center;
flex: 0 1 328px;
min-width: 0;
gap: var(--space-2);
}
.presetLabel {
flex: none;
white-space: nowrap;
color: var(--fg);
}
.presetSelect {
flex: 1;
}
.spacer {
flex: 1;
}
.modifiedNote {
color: var(--fg-subtle);
font-size: var(--fs-small);
overflow-wrap: anywhere;
}
.treeActions,
.filterGroup {
display: flex;
align-items: center;
gap: var(--space-1);
}
.treeActions {
flex: none;
}
.filterGroup {
flex: 1 1 300px;
min-width: 0;
max-width: 392px;
}
.search,
.shortcutFilter {
flex: 1;
min-width: 0;
}
.shortcutFilter {
display: flex;
align-items: center;
gap: var(--space-1);
height: var(--h-field);
padding: 0 var(--space-1) 0 var(--space-2);
background: var(--bg-field);
border-radius: var(--radius-control);
box-shadow: inset 0 0 0 1px var(--border-button);
}
.shortcutFilter:focus-within {
box-shadow: inset 0 0 0 1px var(--focus-ring);
}
.leading {
flex: none;
color: var(--fg-subtle);
}
.filterRecorder {
flex: 1;
box-shadow: none;
padding: 0;
}
.filterRecorder:focus,
.filterRecorder:focus-visible {
box-shadow: none;
outline: none;
}
.filterRecorder > span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.treeWrap {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
border-radius: var(--radius-small);
box-shadow: inset 0 0 0 1px var(--border);
padding-block: var(--space-0-5);
}
.empty {
padding: 8px 12px;
color: var(--fg-subtle);
}
.catRow,
.actionRow {
display: flex;
align-items: center;
gap: var(--space-1-5);
min-width: 0;
flex: 1;
}
.catIcon {
color: var(--fg-subtle);
}
.catName {
color: var(--fg-emphasis);
}
.actionIcon {
display: inline-flex;
flex: none;
width: 14px;
color: var(--fg-subtle);
}
.actionTitle {
flex: 1 0 auto;
}
.modified {
color: var(--accent);
}
.bindings {
display: inline-flex;
flex: none;
gap: var(--space-2);
padding-inline: var(--space-2);
}
/* recorder */
.mousePad {
display: flex;
align-items: center;
justify-content: center;
height: 72px;
padding: 0 12px;
border-radius: var(--radius-small);
box-shadow: inset 0 0 0 1px var(--border-strong);
color: var(--fg-emphasis);
text-align: center;
cursor: default;
user-select: none;
}
.recorder {
display: flex;
align-items: center;
flex: 1;
min-width: 0;
height: var(--h-control);
padding: 0 8px;
border-radius: var(--radius-small);
box-shadow: inset 0 0 0 1px var(--border-strong);
color: var(--fg-emphasis);
cursor: text;
outline: none;
}
.recorder:focus {
box-shadow: inset 0 0 0 1px var(--accent);
}
.recorderDisabled {
opacity: 0.5;
cursor: default;
}
.recorded {
font-family: var(--font-keys);
letter-spacing: 0.04em;
}
.recorderPlaceholder {
color: var(--fg-faint);
}
/* record dialog */
.recordBody {
display: flex;
flex-direction: column;
gap: var(--space-2);
padding: 14px;
}
.recordRow {
display: grid;
grid-template-columns: 120px minmax(0, 1fr);
align-items: center;
gap: var(--space-2);
}
.recordLabel {
color: var(--fg);
}
.recordHint {
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.conflicts {
min-height: 72px;
padding: 6px 8px;
border-radius: var(--radius-small);
box-shadow: inset 0 0 0 1px var(--border);
}
.noConflicts {
color: var(--fg-subtle);
}
.conflictTitle {
display: flex;
align-items: center;
gap: var(--space-1-5);
color: var(--fg-emphasis);
}
.conflictIcon {
color: var(--warning);
}
.conflictList {
list-style: none;
margin: 6px 0 0;
padding: 0 0 0 20px;
max-height: 120px;
overflow: auto;
}
.conflictList li {
display: flex;
min-width: 0;
align-items: center;
gap: var(--space-2);
height: var(--h-row);
}
.conflictAction {
color: var(--fg);
}
.conflictCategory {
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.conflictsLabel {
color: var(--fg);
padding-top: 4px;
}
.nameError {
color: var(--danger);
font-size: var(--fs-small);
padding-left: 128px;
}