From c705186e41c2f8876e6a19e0a7bc7e1e7bed1264 Mon Sep 17 00:00:00 2001 From: ZhenShuo Leo <98386542+ZhenShuo2021@users.noreply.github.com> Date: Sun, 11 May 2025 18:11:24 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20footer=20not=20expand=20i?= =?UTF-8?q?n=20zen-mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/zen-mode.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/js/zen-mode.js b/assets/js/zen-mode.js index bd6d5ee0..d2c38992 100644 --- a/assets/js/zen-mode.js +++ b/assets/js/zen-mode.js @@ -1,6 +1,7 @@ function _toogleZenMode(zendModeButton) { // Nodes selection const body = document.querySelector('body'); + const footer = document.querySelector('footer'); const tocRight = document.querySelector('.toc-right'); const tocInside = document.querySelector('.toc-inside'); const articleContent = document.querySelector('.article-content'); @@ -20,9 +21,11 @@ function _toogleZenMode(zendModeButton) { articleContent.classList.toggle('max-w-fit'); articleContent.classList.toggle('max-w-prose'); - // Change width of article title + // Change width of article title and footer header.classList.toggle('max-w-full'); header.classList.toggle('max-w-prose'); + footer.classList.toggle('max-w-full'); + footer.classList.toggle('max-w-prose'); // Read i18n title from data-attributes const titleI18nDisable = zendModeButton.getAttribute('data-title-i18n-disable');