From 6d20417fd557b4896815d20b3ee7cf89c3eedc68 Mon Sep 17 00:00:00 2001 From: ZhenShuo2021 <98386542+ZhenShuo2021@users.noreply.github.com> Date: Mon, 2 Dec 2024 22:30:52 +0800 Subject: [PATCH] fix: expand article title in zen mode --- assets/js/zen-mode.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/zen-mode.js b/assets/js/zen-mode.js index 0da48428d..bd6d5ee01 100644 --- a/assets/js/zen-mode.js +++ b/assets/js/zen-mode.js @@ -20,6 +20,10 @@ function _toogleZenMode(zendModeButton) { articleContent.classList.toggle('max-w-fit'); articleContent.classList.toggle('max-w-prose'); + // Change width of article title + header.classList.toggle('max-w-full'); + header.classList.toggle('max-w-prose'); + // Read i18n title from data-attributes const titleI18nDisable = zendModeButton.getAttribute('data-title-i18n-disable'); const titleI18nEnable = zendModeButton.getAttribute('data-title-i18n-enable');