From 37b117a84c2fca1ad27ecb279aebe5c1f75e1b73 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 5 Aug 2024 18:00:04 +0200 Subject: [PATCH] fix: styling --- .../chat/Messages/ResponseMessage.svelte | 2 +- src/lib/components/common/Image.svelte | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 10ded00fd..d6245d83d 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -411,7 +411,7 @@ {/if}
{#if (message?.statusHistory ?? [...(message?.status ? [message?.status] : [])]).length > 0} diff --git a/src/lib/components/common/Image.svelte b/src/lib/components/common/Image.svelte index 99f1eb405..020e016e8 100644 --- a/src/lib/components/common/Image.svelte +++ b/src/lib/components/common/Image.svelte @@ -5,21 +5,26 @@ export let src = ''; export let alt = ''; - let _src = ''; + export let className = ''; + let _src = ''; $: _src = src.startsWith('/') ? `${WEBUI_BASE_URL}${src}` : src; let showImagePreview = false; -
- + src={_src} + {alt} + class=" rounded-lg" + draggable="false" + data-cy="image" + />