From 7447b543efc39b5405164f9b95e6308ffed501dd Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 19 Jun 2026 07:53:04 +0530 Subject: [PATCH] fix(ui): prevent double vertical scrollbars in latex math rendering Co-Authored-By: Antigravity --- frontend/src/index.css | 9 +++++++++ 1 file changed, 9 insertions(+) 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 {