diff options
Diffstat (limited to 'frontend/src/index.css')
| -rw-r--r-- | frontend/src/index.css | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/frontend/src/index.css b/frontend/src/index.css index 16d39fe..8bf2bbd 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -181,6 +181,31 @@ html, body, #root { accent-color: var(--accent-blue); } +/* Allow long math formulas to scroll horizontally */ +.katex-display { + overflow-x: auto; + overflow-y: hidden; + scrollbar-width: thin; + scrollbar-color: rgba(156, 163, 175, 0.5) transparent; +} + +.katex-display::-webkit-scrollbar { + height: 4px; +} + +.katex-display::-webkit-scrollbar-track { + background: transparent; +} + +.katex-display::-webkit-scrollbar-thumb { + background: rgba(156, 163, 175, 0.5); + border-radius: 2px; +} + +.katex-display::-webkit-scrollbar-thumb:hover { + background: rgba(156, 163, 175, 0.8); +} + /* Hide the selection box that wraps selected nodes */ .react-flow__nodesselection-rect { display: none !important; |
