mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
The imported-sessions section of the Agent sessions popup was flex: none, so many imported sessions (17 took 385 of 420 px) left the task list 0 px tall and the wheel had nothing to scroll. The section now shrinks within a 40% cap and scrolls on its own; the task list keeps its own scroll area. Co-authored-by: misswell <28730815+misswell@users.noreply.github.com>
269 lines
4.9 KiB
CSS
269 lines
4.9 KiB
CSS
.view {
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.content {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.content > * {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
/* A session editor tab hovers over the tool window: it will dock here. */
|
|
.dropTarget {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.loading {
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--fg-muted);
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
.groupLabel {
|
|
color: var(--fg-strong);
|
|
font-weight: 600;
|
|
}
|
|
.count {
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-tiny);
|
|
}
|
|
/* A task is being dragged over this group: dropping it puts the task there. */
|
|
.dropOver {
|
|
background: var(--bg-hover);
|
|
outline: 1px dashed var(--accent);
|
|
outline-offset: -1px;
|
|
}
|
|
.title {
|
|
flex: 0 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.title[data-unread] {
|
|
color: var(--fg-strong);
|
|
font-weight: 600;
|
|
}
|
|
.unreadDot {
|
|
flex: none;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
}
|
|
.taskProject {
|
|
flex: 0 0 auto;
|
|
max-width: 35%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.detail {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.age {
|
|
flex: none;
|
|
margin-left: auto;
|
|
padding-right: 8px;
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.ready {
|
|
color: var(--success);
|
|
}
|
|
.failed {
|
|
color: var(--danger);
|
|
}
|
|
.archived {
|
|
color: var(--fg-subtle);
|
|
}
|
|
|
|
.empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
padding: 24px 12px;
|
|
color: var(--fg-muted);
|
|
}
|
|
.link {
|
|
border: 0;
|
|
background: none;
|
|
padding: 0;
|
|
color: var(--link);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.link:hover {
|
|
color: var(--link-hover);
|
|
}
|
|
|
|
.statusItem {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
height: 100%;
|
|
padding: 0 6px;
|
|
border: 0;
|
|
border-radius: var(--radius-small);
|
|
background: none;
|
|
color: inherit;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.statusItem:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.statusPart {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
/* A docked conversation owns the tool window; history opens on demand. */
|
|
.docked {
|
|
flex: 1 1 0;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.dockedBar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
padding: 2px 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.dockedTitle {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-weight: 600;
|
|
}
|
|
.dockedSession {
|
|
flex: 1;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.tasks {
|
|
flex: 1;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
/* Sits in the list like a tree row: no frame at rest, a fill on hover and a ring while typing. */
|
|
.taskSearch {
|
|
flex: none;
|
|
height: var(--h-list-row);
|
|
margin: 2px var(--tree-inset, 6px) 2px;
|
|
border-radius: var(--radius-selection, 5px);
|
|
transition: background var(--dur-fast) var(--ease);
|
|
}
|
|
.taskSearch:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.taskSearch:focus-within {
|
|
background: var(--bg-field, var(--bg-button));
|
|
box-shadow: inset 0 0 0 1px var(--focus-ring);
|
|
}
|
|
.history {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: min(400px, calc(100vw - 24px));
|
|
height: min(420px, 65vh);
|
|
overflow: hidden;
|
|
}
|
|
.historyTitle {
|
|
flex: none;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-weight: 600;
|
|
}
|
|
/* Imported sessions below the task list: compact rows, not growing space. */
|
|
.external {
|
|
/* Many imported sessions must not squeeze the task list out of the popup. */
|
|
flex: 0 1 auto;
|
|
min-height: 0;
|
|
max-height: 40%;
|
|
overflow-y: auto;
|
|
padding: 4px 12px 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1);
|
|
}
|
|
.external > .row {
|
|
flex: none;
|
|
}
|
|
|
|
/* Import Sessions from Other Apps: filter above a fixed-height list, so the dialog doesn't grow. */
|
|
.chooser {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
}
|
|
.chooserList {
|
|
height: 312px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-control);
|
|
overflow: hidden;
|
|
}
|
|
.chooserList > * {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
.chooserRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
min-width: 0;
|
|
width: 100%;
|
|
}
|
|
.chooserFooter {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
}
|
|
.chooserFolder {
|
|
flex: 0 0 auto;
|
|
max-width: 35%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.chooserHint {
|
|
color: var(--fg-muted);
|
|
font-size: var(--fs-small);
|
|
}
|