Skip to content

Commit

Permalink
Merge pull request #1864 from ZhenShuo2021/fix/zen-mode-expand-title
Browse files Browse the repository at this point in the history
fix: expand article title in zen mode
  • Loading branch information
nunocoracao authored Jan 10, 2025
2 parents 93d5dfb + 6d20417 commit 99d377e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/zen-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 99d377e

Please sign in to comment.