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
d0633a94
Commit
d0633a94
authored
Dec 08, 2023
by
Timothy J. Baek
Browse files
feat: horizontal scroll for code block
parent
a3e2a573
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
src/app.css
src/app.css
+8
-0
src/lib/components/chat/Messages.svelte
src/lib/components/chat/Messages.svelte
+1
-1
No files found.
src/app.css
View file @
d0633a94
...
...
@@ -14,6 +14,14 @@ html {
word-break
:
break-word
;
}
code
{
white-space-collapse
:
preserve
!important
;
/* text-wrap: nowrap !important; */
white-space
:
nowrap
;
width
:
auto
;
}
math
{
margin-top
:
1rem
;
}
...
...
src/lib/components/chat/Messages.svelte
View file @
d0633a94
...
...
@@ -372,7 +372,7 @@
{/if}
</div>
<div
class=
"w-full"
>
<div
class=
"w-full
overflow-hidden
"
>
<div
class=
" self-center font-bold mb-0.5"
>
{#if message.role === 'user'}
You
...
...
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