mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-18 04:43:55 +00:00
feat: long status lines above a reply can be expanded to their full text (#32532)
Status messages above a reply, such as the ones functions and tools send, were always cut to one line, so a longer message like a token usage summary could never be read in full, especially when several models answer side by side. Clicking a single status line now shows its full text, and when there are several, clicking opens the status history with every entry in full. Status lines with their own view, like web search results, are unchanged. Fixes #30056
This commit is contained in:
parent
aa1dd240cd
commit
291b57bec2
2 changed files with 5 additions and 3 deletions
|
|
@ -39,7 +39,7 @@
|
|||
}}
|
||||
>
|
||||
<div class="flex items-start gap-2">
|
||||
<StatusItem {status} />
|
||||
<StatusItem {status} clamp={!showHistory || history.length > 1} />
|
||||
</div>
|
||||
</button>
|
||||
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
{/if}
|
||||
</div>
|
||||
|
||||
<StatusItem {status} done={true} />
|
||||
<StatusItem {status} done={true} clamp={false} />
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
export let status = null;
|
||||
export let done = false;
|
||||
export let clamp = true;
|
||||
</script>
|
||||
|
||||
{#if !status?.hidden}
|
||||
|
|
@ -127,7 +128,8 @@
|
|||
<div
|
||||
class="{(done || status?.done) === false
|
||||
? 'shimmer'
|
||||
: ''} text-gray-500 dark:text-gray-500 text-[0.9375rem] line-clamp-1 text-wrap"
|
||||
: ''} text-gray-500 dark:text-gray-500 text-[0.9375rem] text-wrap"
|
||||
class:line-clamp-1={clamp}
|
||||
>
|
||||
<!-- $i18n.t(`Searching "{{searchQuery}}"`) -->
|
||||
{#if status?.description?.includes('{{searchQuery}}')}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue