Browse Source

fix(desktop): added inverted svg for steps expanded for nice UX (#10462)

Co-authored-by: opencode <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
OpeOginni 3 weeks ago
parent
commit
50b5168c16
1 changed files with 18 additions and 1 deletions
  1. 18 1
      packages/ui/src/components/session-turn.tsx

+ 18 - 1
packages/ui/src/components/session-turn.tsx

@@ -610,7 +610,7 @@ export function SessionTurn(
                               <Match when={working()}>
                                 <Spinner />
                               </Match>
-                              <Match when={true}>
+                              <Match when={!props.stepsExpanded}>
                                 <svg
                                   width="10"
                                   height="10"
@@ -627,6 +627,23 @@ export function SessionTurn(
                                   />
                                 </svg>
                               </Match>
+                              <Match when={props.stepsExpanded}>
+                                <svg
+                                  width="10"
+                                  height="10"
+                                  viewBox="0 0 10 10"
+                                  fill="none"
+                                  xmlns="http://www.w3.org/2000/svg"
+                                  class="text-icon-base"
+                                >
+                                  <path
+                                    d="M8.125 8.125H1.875L5 1.875L8.125 8.125Z"
+                                    fill="currentColor"
+                                    stroke="currentColor"
+                                    stroke-linejoin="round"
+                                  />
+                                </svg>
+                              </Match>
                             </Switch>
                             <Switch>
                               <Match when={retry()}>