Skip to content

Commit

Permalink
fix: expand article title in zen mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenShuo2021 committed Dec 2, 2024
1 parent 00a24c2 commit 6d20417
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 6d20417

Please sign in to comment.