summaryrefslogtreecommitdiff
path: root/frontend/src/index.css
diff options
context:
space:
mode:
authorYurenHao0426 <blackhao0426@gmail.com>2026-02-13 19:36:39 +0000
committerYurenHao0426 <blackhao0426@gmail.com>2026-02-13 19:36:39 +0000
commit942749ef10851bf74d068851e6added89bea5900 (patch)
tree1cc1159f7f92beb6494ce5c83381159f945200e7 /frontend/src/index.css
parent962e96b0f0f0b91341b65e53b9b52b7c5b10f6d6 (diff)
Fix expanded response view dark mode and KaTeX scrollbar styling
- Add dark mode background/text/border to response modal - Add prose-invert to expanded response markdown container - Style katex-display with thin transparent-track scrollbar for overflow formulas Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'frontend/src/index.css')
-rw-r--r--frontend/src/index.css25
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;