Simplify search agent activity state

This commit is contained in:
wuyang
2026-07-08 14:11:13 +08:00
parent 894c914e26
commit 4892e7afad
3 changed files with 97 additions and 59 deletions
+74 -38
View File
@@ -521,55 +521,83 @@ button {
padding: 3px 6px;
}
.agent-steps {
.agent-activity {
display: grid;
gap: 10px;
grid-template-columns: auto minmax(0, 1fr) auto;
gap: 12px;
align-items: center;
border: 1px solid var(--line);
border-radius: 8px;
background: #fbfaf6;
padding: 12px;
}
.agent-step {
display: grid;
grid-template-columns: 13px 1fr;
gap: 10px;
align-items: start;
color: var(--muted);
}
.step-dot {
width: 9px;
height: 9px;
margin-top: 6px;
border: 1px solid #aab3ad;
.activity-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: #ffffff;
}
.agent-step strong {
display: block;
color: #17201d;
font-size: 13px;
}
.agent-step span:last-child {
display: block;
margin-top: 2px;
font-size: 12px;
line-height: 1.42;
}
.agent-step.running .step-dot {
border-color: var(--teal);
background: var(--teal);
box-shadow: 0 0 0 5px rgba(13, 118, 111, 0.12);
box-shadow: 0 0 0 7px rgba(13, 118, 111, 0.12);
}
.agent-step.done .step-dot {
border-color: var(--green);
.agent-activity.running .activity-dot {
animation: activityPulse 1.5s ease-in-out infinite;
}
.agent-activity.done .activity-dot {
background: var(--green);
box-shadow: 0 0 0 7px rgba(82, 127, 70, 0.12);
}
.agent-step.error .step-dot {
border-color: var(--coral);
.agent-activity.error .activity-dot {
background: var(--coral);
box-shadow: 0 0 0 7px rgba(186, 86, 68, 0.12);
}
.activity-copy {
min-width: 0;
}
.activity-title {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: baseline;
color: var(--muted);
font-size: 12px;
}
.activity-title strong {
color: #17201d;
font-size: 14px;
}
.activity-detail {
margin-top: 3px;
color: #4c5550;
font-size: 13px;
line-height: 1.38;
overflow-wrap: anywhere;
}
.activity-meta {
color: var(--muted);
font-size: 11px;
font-weight: 760;
white-space: nowrap;
}
@keyframes activityPulse {
0%,
100% {
transform: scale(1);
box-shadow: 0 0 0 7px rgba(13, 118, 111, 0.1);
}
50% {
transform: scale(0.82);
box-shadow: 0 0 0 10px rgba(13, 118, 111, 0.18);
}
}
.search-brief h3 {
@@ -885,6 +913,14 @@ button {
max-width: 100%;
}
.agent-activity {
grid-template-columns: auto minmax(0, 1fr);
}
.activity-meta {
grid-column: 2;
}
.route-band,
.timeline-band {
margin-top: 12px;