Improve the scrollbars in code blocks

This commit is contained in:
oobabooga 2025-06-04 10:59:43 -07:00
parent 9bd7359ffa
commit 66a75c899a

View file

@ -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, {