qwen-code/packages/web-shell/client/components/messages/tools/ParallelAgentsGroup.module.css
ytahdn 0f98842ff2
fix(web-shell): refine tool detail cards (#6399)
Co-authored-by: ytahdn <ytahdn@gmail.com>
2026-07-06 14:58:22 +00:00

234 lines
3.6 KiB
CSS

.wrap {
margin: 0;
}
.summary {
width: 100%;
margin: 0;
border: none;
border-radius: 0;
background: transparent;
color: var(--muted-foreground);
display: flex;
align-items: center;
gap: 7px;
min-width: 0;
cursor: pointer;
text-align: left;
font: inherit;
}
.summary:hover,
.summary:focus-visible {
color: var(--primary);
outline: none;
}
.summary:hover .summaryTextActive,
.summary:focus-visible .summaryTextActive {
background-image: none;
-webkit-text-fill-color: currentColor;
}
.summaryIcon {
min-width: 14px;
height: 14px;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
line-height: 1;
}
.summaryIcon svg {
display: block;
}
.summaryStatus {
display: inline-flex;
align-items: center;
flex-shrink: 0;
line-height: 1;
}
.summaryToolIcon {
width: 14px;
height: 14px;
display: block;
}
.summaryText {
min-width: 0;
flex: 0 1 auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
font-weight: 400;
}
.summaryTextActive {
background-image: linear-gradient(
105deg,
var(--muted-foreground) 0%,
var(--muted-foreground) 46%,
rgba(255, 255, 255, 0.92) 50%,
var(--muted-foreground) 54%,
var(--muted-foreground) 100%
);
background-size: 300% 100%;
background-position: 150% 0;
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: summary-shine 5s linear infinite;
}
@keyframes summary-shine {
0% {
background-position: 150% 0;
}
100% {
background-position: -150% 0;
}
}
.summaryDot {
margin: 0 6px;
}
.chevronRight,
.chevronDown {
width: 14px;
height: 14px;
position: relative;
flex-shrink: 0;
opacity: 0;
transition: opacity 120ms ease;
}
.chevronRight::before,
.chevronRight::after,
.chevronDown::before,
.chevronDown::after {
content: '';
position: absolute;
width: 6px;
height: 1px;
background: currentColor;
border-radius: 1px;
}
.summary:hover .chevronRight,
.summary:hover .chevronDown,
.summary:focus-visible .chevronRight,
.summary:focus-visible .chevronDown {
opacity: 1;
}
.chevronRight {
transform: none;
}
.chevronRight::before {
top: calc(50% - 2px);
left: calc(50% - 3px);
transform: rotate(45deg);
}
.chevronRight::after {
top: calc(50% + 2px);
left: calc(50% - 3px);
transform: rotate(-45deg);
}
.chevronDown {
transform: none;
}
.chevronDown::before {
top: 50%;
left: calc(50% - 5px);
transform: rotate(45deg);
}
.chevronDown::after {
top: 50%;
left: calc(50% - 1px);
transform: rotate(-45deg);
}
.group {
background: var(--secondary);
border: 0.5px solid var(--border);
border-radius: var(--radius);
padding: 8px 12px;
margin: 5px 0;
min-width: 0;
overflow: hidden;
}
.header {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: var(--foreground);
font-weight: 600;
margin-bottom: 6px;
}
.headerDot {
color: var(--muted-foreground);
}
.headerCount {
color: var(--muted-foreground);
font-weight: 400;
}
.list {
display: flex;
flex-direction: column;
gap: 0;
}
.row {
display: flex;
align-items: center;
gap: 6px;
padding: 3px 0;
min-width: 0;
cursor: pointer;
border-radius: 3px;
}
.row:hover {
background: var(--secondary);
}
.rowStats {
font-size: 11px;
color: var(--muted-foreground);
white-space: nowrap;
flex-shrink: 0;
margin-left: auto;
}
.rowDesc {
font-size: 12px;
color: var(--muted-foreground);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
min-width: 0;
}
.rowTool {
color: var(--muted-foreground);
}
.detail {
margin-top: 4px;
}