From 5e1742a3be5afae155fb37f1c469945d2ee0dffc Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 7 Mar 2026 23:39:24 -0800 Subject: fix latex block overflow mobile --- style.css | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'style.css') diff --git a/style.css b/style.css index bda5c63..88760b4 100644 --- a/style.css +++ b/style.css @@ -337,9 +337,13 @@ li { margin: 0.3rem 0; } mjx-container[jax="CHTML"] { &[display="true"] { + display: block !important; + min-width: 0 !important; + overflow-y: hidden !important; + overflow-x: auto !important; + background: rgba(212, 163, 115, 0.05); padding: 1.5rem; - text-align: left !important; border-left: 2px solid var(--accent); margin: 2rem 0 !important; @@ -347,10 +351,16 @@ mjx-container[jax="CHTML"] { } &:not([display="true"]) { - padding: 0; - margin: 0; - background: transparent; - border: none; + padding: 0; margin: 0; background: transparent; border: none; + } + + & mjx-mtable { + margin-left: 0 !important; + text-align: left !important; + } + + & mjx-mtd { + text-align: left !important; } } -- cgit v1.3