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
+2 -1
View File
@@ -6,6 +6,7 @@
export let alt = '';
export let className = ' w-full';
export let imageClassName = 'rounded-lg';
let _src = '';
$: _src = src.startsWith('/') ? `${WEBUI_BASE_URL}${src}` : src;
@@ -19,7 +20,7 @@
showImagePreview = true;
}}
>
<img src={_src} {alt} class=" rounded-lg cursor-pointer" draggable="false" data-cy="image" />
<img src={_src} {alt} class={imageClassName} draggable="false" data-cy="image" />
</button>
<ImagePreview bind:show={showImagePreview} src={_src} {alt} />