This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-15 23:34:45 -04:00
1 parent 2712103c59
commit 07fafe081b
3 files changed
+16 -10

No files matched your search

@@ -112,7 +112,7 @@
<div {id} class="w-full"> <div {id} class="w-full">
<!-- svelte-ignore a11y-no-static-element-interactions --> <!-- svelte-ignore a11y-no-static-element-interactions -->
<button <button
class="w-fit py-1 text-left text-[0.9375rem] text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition cursor-pointer" class="w-fit py-0.5 text-left text-[0.9375rem] text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition cursor-pointer"
aria-label={$i18n.t('Toggle details')} aria-label={$i18n.t('Toggle details')}
aria-expanded={open} aria-expanded={open}
on:click={() => { on:click={() => {
@@ -158,7 +158,7 @@
{#if open} {#if open}
<div transition:slide={{ duration: 300, easing: quintOut, axis: 'y' }}> <div transition:slide={{ duration: 300, easing: quintOut, axis: 'y' }}>
<div class="mb-1 space-y-1.5"> <div class="mb-1">
<slot name="content" /> <slot name="content" />
</div> </div>
</div> </div>
@@ -377,7 +377,7 @@
messageDone={done} messageDone={done}
{allowEmbeds} {allowEmbeds}
> >
<div slot="content" class="space-y-1"> <div slot="content">
{#each token.items as detailToken, detailIdx} {#each token.items as detailToken, detailIdx}
{@const textContent = getDetailTextContent(detailToken)} {@const textContent = getDetailTextContent(detailToken)}
@@ -388,7 +388,8 @@
resultContent={getDetailTextContent(detailToken)} resultContent={getDetailTextContent(detailToken)}
grouped={true} grouped={true}
open={$settings?.expandDetails ?? false} open={$settings?.expandDetails ?? false}
className="w-full space-y-2" className="w-full"
buttonClassName="w-fit py-0.5 text-[0.9375rem] text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition"
/> />
{:else if textContent.length > 0} {:else if textContent.length > 0}
<Collapsible <Collapsible
@@ -396,7 +397,8 @@
open={$settings?.expandDetails ?? false} open={$settings?.expandDetails ?? false}
attributes={detailToken?.attributes} attributes={detailToken?.attributes}
messageDone={done} messageDone={done}
className="w-full space-y-2" className="w-full"
buttonClassName="w-fit py-0.5 text-[0.9375rem] text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition"
dir="auto" dir="auto"
> >
<div class="mb-1.5" slot="content"> <div class="mb-1.5" slot="content">
@@ -419,7 +421,8 @@
disabled={true} disabled={true}
attributes={detailToken?.attributes} attributes={detailToken?.attributes}
messageDone={done} messageDone={done}
className="w-full space-y-2" className="w-full"
buttonClassName="w-fit py-0.5 text-[0.9375rem] text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition"
dir="auto" dir="auto"
/> />
{/if} {/if}
@@ -65,7 +65,7 @@
tokens={displayItem.tokens} tokens={displayItem.tokens}
messageDone={done} messageDone={done}
> >
<div slot="content" class="space-y-2"> <div slot="content">
{#each displayItem.tokens as detailToken, detailIndex} {#each displayItem.tokens as detailToken, detailIndex}
{#if detailToken.attributes?.type === 'tool_calls'} {#if detailToken.attributes?.type === 'tool_calls'}
<ToolCallDisplay <ToolCallDisplay
@@ -74,7 +74,8 @@
resultContent={detailToken.text} resultContent={detailToken.text}
grouped={true} grouped={true}
open={$settings?.expandDetails ?? false} open={$settings?.expandDetails ?? false}
className="w-full space-y-2" className="w-full"
buttonClassName="w-fit py-0.5 text-[0.9375rem] text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition"
/> />
{:else if detailToken.text?.length > 0} {:else if detailToken.text?.length > 0}
<Collapsible <Collapsible
@@ -82,7 +83,8 @@
open={$settings?.expandDetails ?? false} open={$settings?.expandDetails ?? false}
attributes={getDetailAttributes(detailToken)} attributes={getDetailAttributes(detailToken)}
messageDone={done} messageDone={done}
className="w-full space-y-2" className="w-full"
buttonClassName="w-fit py-0.5 text-[0.9375rem] text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition"
> >
<div class="mb-1.5" slot="content"> <div class="mb-1.5" slot="content">
<div class="markdown-prose"> <div class="markdown-prose">
@@ -102,7 +104,8 @@
disabled={true} disabled={true}
attributes={getDetailAttributes(detailToken)} attributes={getDetailAttributes(detailToken)}
messageDone={done} messageDone={done}
className="w-full space-y-2" className="w-full"
buttonClassName="w-fit py-0.5 text-[0.9375rem] text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition"
/> />
{/if} {/if}
{/each} {/each}