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
1e880f25
Unverified
Commit
1e880f25
authored
Dec 08, 2023
by
Timothy Jaeryang Baek
Committed by
GitHub
Dec 08, 2023
Browse files
Merge pull request #196 from ollama-webui/codeblock-width
feat: horizontal scroll for code block
parents
a3e2a573
109dbb44
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
src/app.css
src/app.css
+8
-2
src/lib/components/chat/Messages.svelte
src/lib/components/chat/Messages.svelte
+1
-1
No files found.
src/app.css
View file @
1e880f25
...
...
@@ -14,6 +14,12 @@ html {
word-break
:
break-word
;
}
code
{
white-space-collapse
:
preserve
!important
;
white-space
:
nowrap
;
width
:
auto
;
}
math
{
margin-top
:
1rem
;
}
...
...
@@ -31,8 +37,8 @@ math {
}
::-webkit-scrollbar
{
height
:
1
rem
;
width
:
0.5rem
;
height
:
0.45
rem
;
width
:
0.
3
5rem
;
}
::-webkit-scrollbar-track
{
...
...
src/lib/components/chat/Messages.svelte
View file @
1e880f25
...
...
@@ -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