This commit is contained in:
Timothy Jaeryang Baek
2024-11-09 23:57:19 -08:00
parent 3ba9f2aae2
commit ff9fdc2f88
2 changed files with 4 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
import Tooltip from '$lib/components/common/Tooltip.svelte';
import FileItem from '$lib/components/common/FileItem.svelte';
import Markdown from './Markdown.svelte';
import Image from '$lib/components/common/Image.svelte';
const i18n = getContext('i18n');
@@ -128,7 +129,7 @@
{#each message.files as file}
<div class={($settings?.chatBubble ?? true) ? 'self-end' : ''}>
{#if file.type === 'image'}
<img src={file.url} alt="input" class=" max-h-96 rounded-lg" draggable="false" />
<Image src={file.url} imageClassName=" max-h-96 rounded-lg" />
{:else}
<FileItem
item={file}