fix(tui): unify pending tool styling (#36278)
This commit is contained in:
@@ -2042,8 +2042,7 @@ function InlineTool(props: {
|
|||||||
if (permission()) return theme.warning
|
if (permission()) return theme.warning
|
||||||
if (failed()) return theme.error
|
if (failed()) return theme.error
|
||||||
if (hover() && props.onClick) return theme.text
|
if (hover() && props.onClick) return theme.text
|
||||||
if (props.complete) return theme.textMuted
|
return theme.textMuted
|
||||||
return theme.text
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -2103,13 +2102,7 @@ export function InlineToolRow(props: {
|
|||||||
<Match when={true}>
|
<Match when={true}>
|
||||||
<Show
|
<Show
|
||||||
fallback={
|
fallback={
|
||||||
<text
|
<Spinner color={props.color}>{props.pending}</Spinner>
|
||||||
paddingLeft={3}
|
|
||||||
fg={props.color}
|
|
||||||
attributes={props.denied ? TextAttributes.STRIKETHROUGH : undefined}
|
|
||||||
>
|
|
||||||
~ {props.pending}
|
|
||||||
</text>
|
|
||||||
}
|
}
|
||||||
when={props.complete || props.failed}
|
when={props.complete || props.failed}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user