mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
- Align the repository, current branch, stash list, and branch input in two columns using the workbench form font. Put Show Changes and Drop Stash beside the list and group the restore options beneath it. - Add a repository picker for multi-repository projects. Each repository loads its own stash list before the actions become available. After a drop, the list stays visible while the actions wait for the refreshed selection. The fields stack on narrow windows.
120 lines
1.9 KiB
CSS
120 lines
1.9 KiB
CSS
.form {
|
|
display: grid;
|
|
grid-template-columns: max-content minmax(0, 1fr);
|
|
align-items: start;
|
|
gap: var(--space-2) var(--space-3);
|
|
padding: var(--space-3) var(--space-4);
|
|
font-size: var(--fs-ui);
|
|
}
|
|
|
|
.label,
|
|
.fact {
|
|
align-self: center;
|
|
}
|
|
|
|
.label,
|
|
.listLabel {
|
|
max-inline-size: 12em;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.listLabel {
|
|
padding-block-start: var(--space-1);
|
|
}
|
|
|
|
.fact {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.stashPanel {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: start;
|
|
gap: var(--space-2);
|
|
min-width: 0;
|
|
}
|
|
|
|
.stashes {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-0-5);
|
|
min-block-size: 112px;
|
|
max-block-size: 224px;
|
|
overflow: auto;
|
|
padding: var(--space-1);
|
|
border: 1px solid var(--border-input, var(--border));
|
|
border-radius: var(--radius-control);
|
|
background: var(--bg-input);
|
|
}
|
|
|
|
.stash {
|
|
flex: none;
|
|
min-block-size: var(--h-field);
|
|
padding-inline: var(--space-2);
|
|
border-radius: var(--radius-selection);
|
|
}
|
|
|
|
.stash:hover {
|
|
background: var(--bg-tree-hover);
|
|
}
|
|
|
|
.stash:has(input:checked) {
|
|
background: var(--bg-tree-selected);
|
|
}
|
|
|
|
.stashText {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.status {
|
|
padding: var(--space-1) var(--space-2);
|
|
color: var(--fg-secondary);
|
|
}
|
|
|
|
.actions,
|
|
.options {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.options {
|
|
grid-column: 2;
|
|
column-gap: var(--space-4);
|
|
}
|
|
|
|
@media (max-width: 540px) {
|
|
.stashPanel {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
.actions {
|
|
flex-direction: row;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 440px) {
|
|
.form {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
.label,
|
|
.listLabel {
|
|
max-inline-size: none;
|
|
}
|
|
.listLabel {
|
|
padding-block-start: 0;
|
|
}
|
|
.options {
|
|
grid-column: 1;
|
|
}
|
|
}
|