mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac: mermaid chart rendering
This commit is contained in:
parent
0b218bbb72
commit
1597e33a74
@ -222,6 +222,9 @@ __builtins__.input = input`);
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="my-2" dir="ltr">
|
<div class="my-2" dir="ltr">
|
||||||
|
{#if lang === 'mermaid'}
|
||||||
|
<pre class="mermaid">{code}</pre>
|
||||||
|
{:else}
|
||||||
<div
|
<div
|
||||||
class="flex justify-between bg-[#202123] text-white text-xs px-4 pt-1 pb-0.5 rounded-t-lg overflow-x-auto"
|
class="flex justify-between bg-[#202123] text-white text-xs px-4 pt-1 pb-0.5 rounded-t-lg overflow-x-auto"
|
||||||
>
|
>
|
||||||
@ -273,4 +276,5 @@ __builtins__.input = input`);
|
|||||||
<div class="text-sm">{stdout || stderr || result}</div>
|
<div class="text-sm">{stdout || stderr || result}</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user