From 3408f1596a6e0642b7db0837804c851bb6da7f4f Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Mon, 30 Jun 2025 14:15:40 +0800 Subject: [PATCH] :lipstick: Style: add MathJax overflow styles --- assets/css/_page/_single.scss | 9 ++++++++- layouts/_partials/init/index.html | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/assets/css/_page/_single.scss b/assets/css/_page/_single.scss index 3a67b2d9..c36c5a91 100644 --- a/assets/css/_page/_single.scss +++ b/assets/css/_page/_single.scss @@ -492,7 +492,7 @@ } } - // Katex styles + // KaTeX styles .katex-display { max-width: 100%; overflow-x: auto; @@ -505,6 +505,13 @@ @include border-radius($global-border-radius); } + // MathJax styles + mjx-container[jax='CHTML'][display='true'] { + max-width: 100%; + overflow-x: auto; + overflow-y: hidden; + } + @import '../_partials/_single/alert'; @import '../_partials/_single/code'; @import '../_shortcodes'; diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 80dc858b..bf7dac9c 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- .Scratch.Set "version" "v0.3.21-fb4f1f73" -}} +{{- .Scratch.Set "version" "v0.3.21-89f9373b" -}} {{- .Scratch.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}