From a75e7c4edec369e5a509f60a2b60ca9254926719 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Sat, 11 Jan 2025 18:20:26 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=AE=E5=BD=95=E5=B1=82?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/MasonryItemWidget.php | 2 ++ includes/MasonryWidget.php | 1 + modules/offcanvasTOC/ext.isekai.offcanvasTOC.less | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/MasonryItemWidget.php b/includes/MasonryItemWidget.php index 906810e..b9ce369 100644 --- a/includes/MasonryItemWidget.php +++ b/includes/MasonryItemWidget.php @@ -17,6 +17,8 @@ class MasonryItemWidget { // 获取父级瀑布流参数 $masonryParams = MasonryWidget::getMasonryParams(); + $text = trim($text); + $content = $text = $parser->recursiveTagParse($text, $frame); if (!$masonryParams) { return '' . wfMessage('isekai-masonry-item-must-in-masonry')->parse() . '' . $content; diff --git a/includes/MasonryWidget.php b/includes/MasonryWidget.php index 886f37d..4cb6f9e 100644 --- a/includes/MasonryWidget.php +++ b/includes/MasonryWidget.php @@ -81,6 +81,7 @@ class MasonryWidget { } self::$paramsStack[] = $params; + $text = trim($text); $content = $parser->recursiveTagParseFully($text, $frame); array_pop(self::$paramsStack); diff --git a/modules/offcanvasTOC/ext.isekai.offcanvasTOC.less b/modules/offcanvasTOC/ext.isekai.offcanvasTOC.less index c35f0ff..c1d78d2 100644 --- a/modules/offcanvasTOC/ext.isekai.offcanvasTOC.less +++ b/modules/offcanvasTOC/ext.isekai.offcanvasTOC.less @@ -4,7 +4,7 @@ opacity: 0; top: 0; right: 0; - z-index: 200; + z-index: 220; margin: 0; height: 100vh; min-width: 275px; @@ -80,7 +80,7 @@ opacity: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); - z-index: 101; + z-index: 210; transition: opacity 250ms linear; will-change: opacity;