Files
openidea/src/workbench/MainToolbarDialog.module.css
T
l0ng-ai 096964c798 fix(workbench): align the toolbar customization dialog (#4898)
Move the add, remove, reorder, transfer, and restore controls into a compact toolbar above the lists. Keep the left and right groups side by side when there is room, and stack them in narrow windows so the labels have more space. The add picker opens directly below its command.
2026-11-21 07:24:08 +08:00

82 lines
1.4 KiB
CSS

.body {
display: flex;
flex-direction: column;
gap: var(--space-3);
padding: var(--space-3) var(--space-4);
}
.toolbar {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: var(--space-0-5);
}
.sides {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
gap: var(--space-3);
}
.side {
display: flex;
flex-direction: column;
gap: var(--space-1);
min-width: 0;
}
.heading {
margin: 0;
color: var(--fg);
font-size: var(--fs-ui);
font-weight: 600;
}
.list {
height: 200px;
border: 1px solid var(--border);
border-radius: var(--radius-control);
}
@media (max-width: 510px) {
.list {
height: 124px;
}
}
.row {
display: flex;
align-items: center;
gap: var(--space-1-5);
min-width: 0;
flex: 1;
padding: 0 6px;
}
.activeRow .rowLabel {
color: var(--fg-strong);
}
.rowIcon {
flex: none;
color: var(--fg-muted);
}
.rowLabel {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rowDetail {
margin-left: auto;
color: var(--fg-subtle);
font-size: var(--fs-small);
white-space: nowrap;
}
.empty {
padding: 6px 8px;
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.picker {
display: flex;
flex-direction: column;
gap: var(--space-1-5);
}
.pickerList {
height: 180px;
border: 1px solid var(--border);
border-radius: var(--radius-control);
}