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;