mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-24 22:44:50 -06:00
refac
This commit is contained in:
@@ -665,12 +665,12 @@
|
||||
<StatusHistory statusHistory={message?.statusHistory} />
|
||||
{/if}
|
||||
|
||||
{#if message?.files && message.files?.filter((f) => f.type === 'image').length > 0}
|
||||
{#if message?.files && message.files?.filter( (f) => ['image', 'file'].includes(f.type) ).length > 0}
|
||||
<div
|
||||
class="my-1 w-full flex overflow-x-auto gap-2 flex-wrap"
|
||||
dir={$settings?.chatDirection ?? 'auto'}
|
||||
>
|
||||
{#each message.files as file}
|
||||
{#each message.files.filter((f) => ['image', 'file'].includes(f.type)) as file}
|
||||
<div>
|
||||
{#if file.type === 'image' || (file?.content_type ?? '').startsWith('image/')}
|
||||
<Image src={file.url} alt={message.content} />
|
||||
|
||||
Reference in New Issue
Block a user