fix(session-ui): use the filled chevron for Code Mode call rows

This commit is contained in:
Hona 2026-10-16 04:58:35 +00:00
parent 8d5e6e23c0
commit bc166cbae1
2 changed files with 25 additions and 3 deletions

View file

@ -594,6 +594,18 @@
[data-slot="icon-svg"] {
transform: translateY(1px);
}
/* Same filled chevron as the tool header: points right, turns down when the call is expanded. */
&[data-chevron] [data-slot="icon-svg"] {
transform: translateY(1px) rotate(-90deg);
transition: transform 0.15s ease;
}
}
[data-slot="execute-tool-call"][aria-expanded="true"]
[data-slot="execute-tool-call-marker"][data-chevron]
[data-slot="icon-svg"] {
transform: translateY(1px);
}
[data-slot="execute-tool-call-name"] {
@ -654,11 +666,12 @@
display: inline-flex;
flex-shrink: 0;
color: var(--v2-text-text-faint);
transform: rotate(-90deg);
transition: transform 0.15s ease;
}
[data-slot="execute-tool-call"][aria-expanded="true"] [data-slot="execute-tool-call-arrow"] {
transform: rotate(90deg);
transform: none;
}
[data-slot="execute-tool-call"][data-status="error"] [data-slot="execute-tool-call-marker"],

View file

@ -2150,7 +2150,14 @@ function ExecuteCallRow(props: { call?: ExecuteToolCall; error?: string }) {
toggle()
}}
>
<Show when={failed()} fallback={<span data-slot="execute-tool-call-marker">›</span>}>
<Show
when={failed()}
fallback={
<span data-slot="execute-tool-call-marker" data-chevron>
<Icon name="fill-triangle-down" size="small" />
</span>
}
>
<span data-slot="execute-tool-call-marker">
<Icon name="outline-hexagonal-warning" size="small" />
</span>
@ -2170,7 +2177,9 @@ function ExecuteCallRow(props: { call?: ExecuteToolCall; error?: string }) {
)}
</Show>
<Show when={props.error}>
<span data-slot="execute-tool-call-arrow">›</span>
<span data-slot="execute-tool-call-arrow">
<Icon name="fill-triangle-down" size="small" />
</span>
</Show>
</div>
<Show when={open()}>