mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-07 06:06:20 -04:00
Improve the scrollbars in code blocks
This commit is contained in:
parent
9bd7359ffa
commit
66a75c899a
1 changed files with 1 additions and 0 deletions
|
@ -229,6 +229,7 @@ function doSyntaxHighlighting() {
|
||||||
codeBlocks.forEach((codeBlock) => {
|
codeBlocks.forEach((codeBlock) => {
|
||||||
hljs.highlightElement(codeBlock);
|
hljs.highlightElement(codeBlock);
|
||||||
codeBlock.setAttribute("data-highlighted", "true");
|
codeBlock.setAttribute("data-highlighted", "true");
|
||||||
|
codeBlock.classList.add("pretty_scrollbar");
|
||||||
});
|
});
|
||||||
|
|
||||||
renderMathInElement(messageBody, {
|
renderMathInElement(messageBody, {
|
||||||
|
|
Loading…
Add table
Reference in a new issue