mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 14:35:43 -06:00
Merge pull request #1864 from ZhenShuo2021/fix/zen-mode-expand-title
fix: expand article title in zen mode
This commit is contained in:
commit
99d377ed1a
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ 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
|
||||||
|
header.classList.toggle('max-w-full');
|
||||||
|
header.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');
|
||||||
const titleI18nEnable = zendModeButton.getAttribute('data-title-i18n-enable');
|
const titleI18nEnable = zendModeButton.getAttribute('data-title-i18n-enable');
|
||||||
|
|
Loading…
Reference in a new issue