Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
1597e33a
Commit
1597e33a
authored
Aug 14, 2024
by
Timothy J. Baek
Browse files
refac: mermaid chart rendering
parent
0b218bbb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
48 deletions
+52
-48
src/lib/components/chat/Messages/CodeBlock.svelte
src/lib/components/chat/Messages/CodeBlock.svelte
+52
-48
No files found.
src/lib/components/chat/Messages/CodeBlock.svelte
View file @
1597e33a
...
...
@@ -222,6 +222,9 @@ __builtins__.input = input`);
</script>
<div class="my-2" dir="ltr">
{#if lang === 'mermaid'}
<pre class="mermaid">{code}</pre>
{:else}
<div
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>
{/if}
{/if}
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment