Compare commits

...

2 commits

Author SHA1 Message Date
ZhenShuo2021
42b54b8237
Merge 6d20417fd5 into 4eed37fc2c 2024-12-03 05:03:16 +05:30
ZhenShuo2021
6d20417fd5
fix: expand article title in zen mode 2024-12-02 22:30:52 +08:00

View file

@ -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');