mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-07 04:54:46 +00:00
fix(app): animate subagent card chevron (#46893)
This commit is contained in:
parent
8565cb52a1
commit
22de01e84f
2 changed files with 22 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue