mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-06 08:18:53 +00:00
refac
This commit is contained in:
parent
aa084f804d
commit
b6cef30bfc
1 changed files with 5 additions and 1 deletions
|
|
@ -222,10 +222,14 @@
|
|||
<div class="flex items-center flex-wrap gap-2 -mx-2 mb-1">
|
||||
{#each editedFiles as file, fileIdx}
|
||||
{#if file.type === 'image' || (file?.content_type ?? '').startsWith('image/')}
|
||||
{@const fileUrl =
|
||||
file.url?.startsWith('data') || file.url?.startsWith('http')
|
||||
? file.url
|
||||
: `${WEBUI_API_BASE_URL}/files/${file.url}${file?.content_type ? '/content' : ''}`}
|
||||
<div class=" relative group">
|
||||
<div class="relative flex items-center">
|
||||
<Image
|
||||
src={file.url}
|
||||
src={fileUrl}
|
||||
alt="input"
|
||||
imageClassName=" size-14 rounded-xl object-cover"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue