refac
This commit is contained in:
@@ -94,7 +94,11 @@
|
|||||||
open = !open;
|
open = !open;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class="w-full font-medium flex items-center gap-1.5 {isExecuting ? 'shimmer' : ''}">
|
<div
|
||||||
|
class="w-full max-w-full font-medium flex items-center gap-1.5 {isExecuting
|
||||||
|
? 'shimmer'
|
||||||
|
: ''}"
|
||||||
|
>
|
||||||
<!-- Status icon -->
|
<!-- Status icon -->
|
||||||
{#if isExecuting}
|
{#if isExecuting}
|
||||||
<div>
|
<div>
|
||||||
@@ -111,26 +115,31 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<!-- Label -->
|
<!-- Label -->
|
||||||
<div class="">
|
<div class="flex-1 line-clamp-1">
|
||||||
{#if isDone}
|
<!-- Short label (below md) -->
|
||||||
<Markdown
|
<span class="@md:hidden font-semibold text-black dark:text-white">{attributes.name}</span>
|
||||||
id={`${componentId}-tool-call-title`}
|
<!-- Full label (md and above) -->
|
||||||
content={$i18n.t('View Result from **{{NAME}}**', {
|
<span class="hidden @md:inline">
|
||||||
NAME: attributes.name
|
{#if isDone}
|
||||||
})}
|
<Markdown
|
||||||
/>
|
id={`${componentId}-tool-call-title`}
|
||||||
{:else}
|
content={$i18n.t('View Result from **{{NAME}}**', {
|
||||||
<Markdown
|
NAME: attributes.name
|
||||||
id={`${componentId}-tool-call-executing`}
|
})}
|
||||||
content={$i18n.t('Executing **{{NAME}}**...', {
|
/>
|
||||||
NAME: attributes.name
|
{:else}
|
||||||
})}
|
<Markdown
|
||||||
/>
|
id={`${componentId}-tool-call-executing`}
|
||||||
{/if}
|
content={$i18n.t('Executing **{{NAME}}**...', {
|
||||||
|
NAME: attributes.name
|
||||||
|
})}
|
||||||
|
/>
|
||||||
|
{/if}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Chevron -->
|
<!-- Chevron -->
|
||||||
<div class="flex self-center translate-y-[1px]">
|
<div class="flex shrink-0 self-center translate-y-[1px]">
|
||||||
{#if open}
|
{#if open}
|
||||||
<ChevronUp strokeWidth="3.5" className="size-3.5" />
|
<ChevronUp strokeWidth="3.5" className="size-3.5" />
|
||||||
{:else}
|
{:else}
|
||||||
|
|||||||
Reference in New Issue
Block a user