Файли
openidea/src/features/agents/Agents.module.css
T
l0ng-ai 4074d079b1 feat(agents): reorder the task menu and polish selection and images (#5621)
* feat(agents): reorder the task menu and polish selection and images

- Task menu: Pin, Rename, Mark as Unread/Read; Fork, Group; Archive (⇧⌘E
  in the task list), Archive All Below, Delete. Terminal and Open in New
  Window leave the menu. Hovering a task row shows Pin and Archive beside
  its age.
- Reply text: no stripe under the unselected start of a line when a
  selection runs on past it; inline code keeps its side insets inside the
  selection. A double or triple click no longer selects into the next
  message.
- Images: tool-read images show as same-height thumbnails; the remove
  button on attached images stays opaque on hover.

* fix(agents): keep Jump to Latest opaque on hover

* fix(agents): keep task row hover buttons from selecting or opening the task
2026-11-24 18:34:22 +08:00

307 рядки
5.7 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;
}
/* Pin and Archive appear beside the age while the pointer is on the row. */
.rowActions {
display: none;
flex: none;
margin-left: auto;
margin-right: var(--space-2);
gap: var(--space-2);
}
.row:hover .rowActions,
.rowActions:focus-within {
display: flex;
}
.row:hover .age,
.row:has(.rowActions:focus-within) .age {
margin-left: 0;
}
.rowAction {
display: flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
padding: 0;
border: none;
background: none;
color: var(--fg-subtle);
--icon-color: currentColor;
cursor: pointer;
}
.rowAction:hover {
color: var(--fg-strong);
}
.rowAction:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: 1px;
border-radius: var(--radius-small);
}
.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;
}
/* Keep the import list height stable while filtering. */
.chooser {
display: flex;
flex-direction: column;
gap: var(--space-2);
padding: var(--space-3) var(--space-4) 0;
}
.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);
}