fix(app): animate subagent card chevron (#46893)

This commit is contained in:
David Hill 2026-09-02 19:47:53 -06:00 committed by GitHub
parent 8565cb52a1
commit 22de01e84f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 9 deletions

View file

@ -252,13 +252,25 @@
justify-content: center;
flex-shrink: 0;
color: var(--v2-text-text-faint);
margin-left: auto;
margin-inline-start: auto;
opacity: 0;
transform: translateX(-4px);
transition:
opacity 0.15s ease,
color 0.15s ease;
color 0.15s ease,
transform 0.15s ease;
@media (hover: hover) {
opacity: 0;
:dir(rtl) & {
transform: translateX(4px);
}
@media (hover: none) {
opacity: 1;
transform: none;
}
@media (prefers-reduced-motion: reduce) {
transition: none;
}
}
@ -285,6 +297,7 @@
[data-component="task-tool-action"] {
opacity: 1;
transform: none;
}
}
}

View file

@ -1398,13 +1398,13 @@ ToolRegistry.register({
<span data-slot="basic-tool-tool-subtitle">{subtitle()}</span>
</Show>
</div>
<Show when={clickable()}>
<div data-component="task-tool-action">
<Icon name="chevron-right" size="small" />
</div>
</Show>
</div>
</div>
<Show when={clickable()}>
<div data-component="task-tool-action">
<Icon name="square-arrow-top-right" size="small" />
</div>
</Show>
</div>
)