mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 08:40:58 +00:00
fix: styling
This commit is contained in:
parent
ab6346ea1c
commit
37b117a84c
@ -411,7 +411,7 @@
|
||||
{/if}
|
||||
|
||||
<div
|
||||
class="prose chat-{message.role} w-full max-w-full dark:prose-invert whitespace-pre-line"
|
||||
class="prose chat-{message.role} w-full max-w-full dark:prose-invert prose-p:my-0 prose-img:my-0 whitespace-pre-line"
|
||||
>
|
||||
<div>
|
||||
{#if (message?.statusHistory ?? [...(message?.status ? [message?.status] : [])]).length > 0}
|
||||
|
@ -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;
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<button
|
||||
<div class={className}>
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
||||
<img
|
||||
on:click={() => {
|
||||
showImagePreview = true;
|
||||
}}
|
||||
class=" w-fit"
|
||||
>
|
||||
<img src={_src} {alt} class=" max-h-96 rounded-lg w-full" draggable="false" data-cy="image" />
|
||||
</button>
|
||||
src={_src}
|
||||
{alt}
|
||||
class=" rounded-lg"
|
||||
draggable="false"
|
||||
data-cy="image"
|
||||
/>
|
||||
</div>
|
||||
<ImagePreview bind:show={showImagePreview} src={_src} {alt} />
|
||||
|
Loading…
Reference in New Issue
Block a user