mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 08:56:39 +00:00
Merge pull request #334 from ollama-webui/code-render-fix
fix: code render issue
This commit is contained in:
commit
b42050fec8
@ -16,7 +16,7 @@ html {
|
||||
|
||||
code {
|
||||
/* white-space-collapse: preserve !important; */
|
||||
white-space: pre;
|
||||
overflow-x: auto;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user