Scoped chat and popup styles to their owning components, removing cross-contaminating global rules from AgentReflectionsTab and consolidating FileMentionPopup and AgentMentionPopup styles locally, while applying final tokenization and budget style revisions in the fixup commit. Fusion-Task-Id: FN-4024
131 lines
2.9 KiB
CSS
131 lines
2.9 KiB
CSS
/* === Background Tasks Indicator === */
|
|
.background-tasks-indicator {
|
|
position: relative;
|
|
}
|
|
|
|
.background-tasks-indicator__pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 1px 8px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 18px;
|
|
white-space: nowrap;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.background-tasks-indicator__pill:hover:not(.background-tasks-indicator__pill--attention) {
|
|
background: color-mix(in srgb, var(--surface) 85%, var(--text-muted));
|
|
}
|
|
|
|
.background-tasks-indicator__pill--attention {
|
|
background: var(--triage);
|
|
color: #fff;
|
|
border-color: var(--triage);
|
|
}
|
|
|
|
.background-tasks-indicator__pill--attention:hover {
|
|
background: color-mix(in srgb, var(--triage) 85%, #000);
|
|
}
|
|
|
|
.background-tasks-indicator__popover {
|
|
position: absolute;
|
|
bottom: calc(100% + 8px);
|
|
left: 0;
|
|
min-width: 280px;
|
|
max-width: 360px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
box-shadow: var(--shadow-md);
|
|
z-index: 1000;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.background-tasks-indicator__popover-header {
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.background-tasks-indicator__popover-list {
|
|
max-height: 240px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.background-tasks-indicator__item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.background-tasks-indicator__item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.background-tasks-indicator__session-icon {
|
|
flex-shrink: 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.background-tasks-indicator__session-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.background-tasks-indicator__session-title {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.background-tasks-indicator__session-meta {
|
|
font-size: calc(var(--space-sm) + var(--space-xs) * 0.75);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.background-tasks-indicator__item-dismiss {
|
|
flex-shrink: 0;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 2px;
|
|
color: var(--text-muted);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.background-tasks-indicator__popover {
|
|
position: fixed;
|
|
/* Add iOS home-indicator inset so the popover doesn't sit inside the
|
|
indicator zone on iPhone with viewport-fit=cover. */
|
|
bottom: calc(
|
|
var(--mobile-nav-height) +
|
|
env(safe-area-inset-bottom, 0px) +
|
|
var(--standalone-bottom-gap)
|
|
);
|
|
left: max(8px, env(safe-area-inset-left, 0px));
|
|
right: max(8px, env(safe-area-inset-right, 0px));
|
|
min-width: auto;
|
|
max-width: none;
|
|
}
|
|
|
|
.background-tasks-indicator__pill {
|
|
min-height: 28px;
|
|
}
|
|
}
|
|
|