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
b42050fe
Unverified
Commit
b42050fe
authored
Jan 01, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jan 01, 2024
Browse files
Merge pull request #334 from ollama-webui/code-render-fix
fix: code render issue
parents
fed6a5b1
affa6568
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
src/app.css
src/app.css
+1
-1
src/lib/components/chat/Messages/ResponseMessage.svelte
src/lib/components/chat/Messages/ResponseMessage.svelte
+1
-0
No files found.
src/app.css
View file @
b42050fe
...
...
@@ -16,7 +16,7 @@ html {
code
{
/* white-space-collapse: preserve !important; */
white-space
:
pre
;
overflow-x
:
auto
;
width
:
auto
;
}
...
...
src/lib/components/chat/Messages/ResponseMessage.svelte
View file @
b42050fe
...
...
@@ -88,6 +88,7 @@
let
code
=
block
.
querySelector
(
'
code
'
);
code
.
style
.
borderTopRightRadius
=
0
;
code
.
style
.
borderTopLeftRadius
=
0
;
code
.
style
.
whiteSpace
=
'
pre
'
;
let
topBarDiv
=
document
.
createElement
(
'
div
'
);
topBarDiv
.
style
.
backgroundColor
=
'
#202123
'
;
...
...
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