This commit is contained in:
Timothy J. Baek committed 2024-08-16 15:33:14 +02:00
1 parent 92062ff722
commit 4ef042e966
6 files changed
+77 -8

No files matched your search

@@ -45,6 +45,14 @@
{#if token.text}
<KatexRenderer content={revertSanitizedResponseContent(token.text)} displayMode={false} />
{/if}
{:else if token.type === 'iframe'}
<iframe
src="{WEBUI_BASE_URL}/api/v1/files/{token.fileId}/content"
title={token.fileId}
width="100%"
frameborder="0"
onload="this.style.height=(this.contentWindow.document.body.scrollHeight+20)+'px';"
></iframe>
{:else if token.type === 'text'}
{token.raw}
{/if}