fix: expand article title in zen mode

This commit is contained in:
ZhenShuo2021 2024-12-02 22:30:52 +08:00
parent 00a24c2448
commit 6d20417fd5
No known key found for this signature in database
GPG key ID: 94230D5F28BB4973

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