refac
This commit is contained in:
1 parent
ff49217206
commit
890bfd0d97
3 files changed
+9
-6
No files matched your search
@@ -96,7 +96,7 @@
|
||||
>
|
||||
{/if}
|
||||
{:else if token.type === 'image'}
|
||||
<Image src={token.href} alt={token.text} />
|
||||
<Image src={token.href} alt={token.text} allowExternal={true} />
|
||||
{:else if token.type === 'strong'}
|
||||
<strong><svelte:self id={`${id}-strong`} tokens={token.tokens} {onSourceClick} /></strong>
|
||||
{:else if token.type === 'em'}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
export let src = '';
|
||||
export let alt = '';
|
||||
export let allowExternal = false;
|
||||
|
||||
export let className = ` w-full ${($settings?.highContrastMode ?? false) ? '' : 'outline-hidden focus:outline-hidden'}`;
|
||||
|
||||
@@ -20,7 +21,7 @@
|
||||
const i18n = getContext('i18n');
|
||||
|
||||
let _src = '';
|
||||
$: _src = safeImageUrl(src.startsWith('/') ? `${WEBUI_BASE_URL}${src}` : src);
|
||||
$: _src = safeImageUrl(src.startsWith('/') ? `${WEBUI_BASE_URL}${src}` : src, allowExternal);
|
||||
|
||||
let showImagePreview = false;
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user