From 04410deac7e6c4a93ecfb79b329816686fb8e40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Sat, 29 Mar 2025 23:36:31 +0000 Subject: [PATCH] Revert ":bug:Fix zen mode footer line bug" --- assets/js/zen-mode.js | 5 ----- layouts/_default/single.html | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/assets/js/zen-mode.js b/assets/js/zen-mode.js index 57526c43..bd6d5ee0 100644 --- a/assets/js/zen-mode.js +++ b/assets/js/zen-mode.js @@ -5,7 +5,6 @@ function _toogleZenMode(zendModeButton) { const tocInside = document.querySelector('.toc-inside'); const articleContent = document.querySelector('.article-content'); const header = document.querySelector('#single_header'); - const footer = document.querySelector(''#single_footer''); // Add footer ref for class transformation // Add semantic class into body tag @@ -24,10 +23,6 @@ function _toogleZenMode(zendModeButton) { // Change width of article title header.classList.toggle('max-w-full'); header.classList.toggle('max-w-prose'); - - // Change width of article footer - 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'); diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1aee0151..5defb34c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -150,7 +150,7 @@ {{ end }} -