diff --git a/frontend/src/index.css b/frontend/src/index.css index 839ace08ab..ae3a95b34c 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -96,6 +96,15 @@ code { body { @apply bg-background text-foreground; } + + /* Prevent KaTeX/MathJax rendered math from creating its own vertical scrollbars */ + .katex, + .katex-display, + .MathJax, + mjx-container { + overflow-x: auto !important; + overflow-y: hidden !important; + } } @keyframes loading-shimmer {