mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
🐛 fix: footer not expand in zen-mode
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
function _toogleZenMode(zendModeButton) {
|
function _toogleZenMode(zendModeButton) {
|
||||||
// Nodes selection
|
// Nodes selection
|
||||||
const body = document.querySelector('body');
|
const body = document.querySelector('body');
|
||||||
|
const footer = document.querySelector('footer');
|
||||||
const tocRight = document.querySelector('.toc-right');
|
const tocRight = document.querySelector('.toc-right');
|
||||||
const tocInside = document.querySelector('.toc-inside');
|
const tocInside = document.querySelector('.toc-inside');
|
||||||
const articleContent = document.querySelector('.article-content');
|
const articleContent = document.querySelector('.article-content');
|
||||||
@@ -20,9 +21,11 @@ function _toogleZenMode(zendModeButton) {
|
|||||||
articleContent.classList.toggle('max-w-fit');
|
articleContent.classList.toggle('max-w-fit');
|
||||||
articleContent.classList.toggle('max-w-prose');
|
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-full');
|
||||||
header.classList.toggle('max-w-prose');
|
header.classList.toggle('max-w-prose');
|
||||||
|
footer.classList.toggle('max-w-full');
|
||||||
|
footer.classList.toggle('max-w-prose');
|
||||||
|
|
||||||
// Read i18n title from data-attributes
|
// Read i18n title from data-attributes
|
||||||
const titleI18nDisable = zendModeButton.getAttribute('data-title-i18n-disable');
|
const titleI18nDisable = zendModeButton.getAttribute('data-title-i18n-disable');
|
||||||
|
|||||||
Reference in New Issue
Block a user