diff --git a/Plugin/unraid/pages/scheduler.php b/Plugin/unraid/pages/scheduler.php index 7f403eb..4fb215b 100644 --- a/Plugin/unraid/pages/scheduler.php +++ b/Plugin/unraid/pages/scheduler.php @@ -3059,13 +3059,8 @@ function vvFontSize(delta) { function vvRestoreEditorPrefs() { const saved = parseInt(localStorage.getItem('vv-editor-fontsize') || '12') || 12; - if (saved !== 12) { - vvFontSizePx = 12; // reset so vvFontSize applies the delta correctly - vvFontSize(saved - 12); - } else { - const fs_el = document.getElementById('vv-es-fontsize'); - if (fs_el) fs_el.textContent = '12px'; - } + vvFontSizePx = 12; + vvFontSize(saved - 12); // always force inline fontSize+lineHeight — Unraid SPA CSS overrides line-height: 1.5 to normal vvWordWrap = localStorage.getItem('vv-editor-wordwrap') === '1'; vvApplyWordWrap(false); }