Explorar o código

fix(tui): unify pending tool styling (#36278)

Kit Langton hai 1 mes
pai
achega
b7b941c354
Modificáronse 1 ficheiros con 2 adicións e 9 borrados
  1. 2 9
      packages/tui/src/routes/session/index.tsx

+ 2 - 9
packages/tui/src/routes/session/index.tsx

@@ -2042,8 +2042,7 @@ function InlineTool(props: {
     if (permission()) return theme.warning
     if (failed()) return theme.error
     if (hover() && props.onClick) return theme.text
-    if (props.complete) return theme.textMuted
-    return theme.text
+    return theme.textMuted
   })
 
   return (
@@ -2103,13 +2102,7 @@ export function InlineToolRow(props: {
         <Match when={true}>
           <Show
             fallback={
-              <text
-                paddingLeft={3}
-                fg={props.color}
-                attributes={props.denied ? TextAttributes.STRIKETHROUGH : undefined}
-              >
-                ~ {props.pending}
-              </text>
+              <Spinner color={props.color}>{props.pending}</Spinner>
             }
             when={props.complete || props.failed}
           >