@bobfrankston/rmfmail 1.2.119 → 1.2.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11645,8 +11645,27 @@ getSettings().then((s) => {
11645
11645
  if (optEditorQuill) optEditorQuill.checked = ed === "quill";
11646
11646
  if (optEditorTiptap) optEditorTiptap.checked = ed === "tiptap";
11647
11647
  if (optEditorTinymce) optEditorTinymce.checked = ed === "tinymce";
11648
+ const fontEl = document.getElementById("opt-compose-font-size");
11649
+ if (fontEl) {
11650
+ const px = Number(s.ui?.composeFontSize);
11651
+ fontEl.value = String(Number.isFinite(px) && px >= 8 && px <= 32 ? px : 15);
11652
+ }
11648
11653
  }).catch(() => {
11649
11654
  });
11655
+ document.getElementById("opt-compose-font-size")?.addEventListener("change", (e) => {
11656
+ const el = e.target;
11657
+ const px = Number(el.value);
11658
+ if (!Number.isFinite(px) || px < 8 || px > 32) return;
11659
+ try {
11660
+ localStorage.setItem("mailx-compose-font-size", String(px));
11661
+ } catch {
11662
+ }
11663
+ getSettings().then((settings) => {
11664
+ settings.ui = { ...settings.ui, composeFontSize: px };
11665
+ saveSettings(settings);
11666
+ }).catch(() => {
11667
+ });
11668
+ });
11650
11669
  function saveEditorSetting(editor) {
11651
11670
  try {
11652
11671
  localStorage.setItem("mailx-editor-type", editor);