mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
0800c21c64
commit
cbb3aade2b
1 changed files with 9 additions and 5 deletions
|
|
@ -41,11 +41,9 @@
|
|||
|
||||
import Name from './Name.svelte';
|
||||
import ProfileImage from './ProfileImage.svelte';
|
||||
import Skeleton from './Skeleton.svelte';
|
||||
import Image from '$lib/components/common/Image.svelte';
|
||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||
import RateComment from './RateComment.svelte';
|
||||
import Spinner from '$lib/components/common/Spinner.svelte';
|
||||
import WebSearchResults from './ResponseMessage/WebSearchResults.svelte';
|
||||
import Sparkles from '$lib/components/icons/Sparkles.svelte';
|
||||
|
||||
|
|
@ -812,9 +810,7 @@
|
|||
class="w-full flex flex-col relative {edit ? 'hidden' : ''}"
|
||||
id="response-content-container"
|
||||
>
|
||||
{#if !hasResponseContent && !message.done && !message.error && !hasVisibleStatus}
|
||||
<Skeleton />
|
||||
{:else if hasResponseContent && message.error !== true}
|
||||
{#if hasResponseContent && message.error !== true}
|
||||
<!-- always show message contents even if there's an error -->
|
||||
<!-- unless message.error === true which is legacy error handling, where the error message is stored in message.content -->
|
||||
<ContentRenderer
|
||||
|
|
@ -875,6 +871,14 @@
|
|||
/>
|
||||
{/if}
|
||||
|
||||
{#if !message.done && !message.error && (hasResponseContent || !hasVisibleStatus)}
|
||||
<div class="text-[0.9375rem] leading-relaxed">
|
||||
<span
|
||||
class="inline-block w-[0.125rem] h-3.5 bg-gray-400 dark:bg-gray-500 ml-0.5 animate-pulse align-text-bottom"
|
||||
></span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if message?.error}
|
||||
<Error content={message?.error?.content ?? message.content} />
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue