@bobfrankston/rmfmail 1.1.208 → 1.1.209

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.
package/client/app.js CHANGED
@@ -1199,7 +1199,11 @@ function showComposeOverlay(title = "Compose") {
1199
1199
  // broken except at the lower-right (resize grip) corner.
1200
1200
  let dragX = 0, dragY = 0;
1201
1201
  titleBar.addEventListener("mousedown", (e) => {
1202
- if (e.target === closeBtn)
1202
+ // Don't start a drag (and don't install the full-window drag shield)
1203
+ // when the press is on ANY title-bar button — the shield was swallowing
1204
+ // the click so Discard / Maximize never fired. Was `=== closeBtn` only,
1205
+ // which is why maximize "didn't maximize" (Bob 2026-05-31).
1206
+ if (btnCluster.contains(e.target))
1203
1207
  return;
1204
1208
  e.preventDefault();
1205
1209
  const rect = wrapper.getBoundingClientRect();
@@ -1778,6 +1782,7 @@ document.getElementById("btn-mark-unread")?.addEventListener("click", () => {
1778
1782
  document.getElementById("btn-reply")?.addEventListener("click", () => openCompose("reply"));
1779
1783
  document.getElementById("btn-reply-all")?.addEventListener("click", () => openCompose("replyAll"));
1780
1784
  document.getElementById("btn-forward")?.addEventListener("click", () => openCompose("forward"));
1785
+ document.getElementById("btn-edit-as-new")?.addEventListener("click", () => openCompose("editAsNew"));
1781
1786
  // ── Icon rail wiring ──
1782
1787
  // Rail is the always-visible vertical bar on the far left (Thunderbird/Dovecot
1783
1788
  // style). Mostly mirrors toolbar/menu actions for one-click access; calendar /