@bobfrankston/rmfmail 1.2.209 → 1.2.211

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.
@@ -7518,7 +7518,8 @@ async function loadFolderTree(container) {
7518
7518
  setTimeout(() => earlyOverlay.remove(), 400);
7519
7519
  }
7520
7520
  if (accounts.length === 0) {
7521
- container.innerHTML = `<div class="folder-loading">No accounts</div>`;
7521
+ const onAndroid = window.mailxapi?.platform === "android";
7522
+ container.innerHTML = onAndroid ? `<div class="folder-loading">Initializing\u2026</div>` : `<div class="folder-loading">No accounts</div>`;
7522
7523
  const mlSection = document.querySelector(".message-list");
7523
7524
  if (mlSection)
7524
7525
  mlSection.style.display = "none";
@@ -7528,12 +7529,15 @@ async function loadFolderTree(container) {
7528
7529
  const mvHeader = document.getElementById("mv-header");
7529
7530
  if (mvHeader)
7530
7531
  mvHeader.style.display = "none";
7532
+ const mvSection = document.querySelector(".message-viewer");
7533
+ if (mvSection && onAndroid)
7534
+ mvSection.classList.add("narrow-active");
7531
7535
  const mainBody = document.getElementById("mv-body");
7532
7536
  if (mainBody) {
7533
- const isAndroid = window.mailxapi?.platform === "android";
7537
+ const isAndroid = onAndroid;
7534
7538
  const formDisplay = isAndroid ? "display:none;" : "";
7535
7539
  const introText = isAndroid ? "" : "Add your email account to get started.";
7536
- const checkingHtml = isAndroid ? '<div style="padding:0.5rem;color:var(--color-text-muted)">Checking for accounts...</div>' : "";
7540
+ const checkingHtml = isAndroid ? '<div id="bootstrap-narration" style="padding:0.5rem;color:var(--color-text-muted)">Initializing\u2026</div>' : "";
7537
7541
  const gmailNote = isAndroid ? "" : `<p style="margin-top:0.5rem;padding:0.5rem 0.75rem;background:color-mix(in oklch, var(--color-accent) 12%, var(--color-bg-surface));border:1px solid var(--color-border);border-radius:4px;font-size:0.9rem">For now, a <strong>Gmail</strong> or Google Workspace account is required. Support for other providers is coming.</p>`;
7538
7542
  mainBody.innerHTML = `<div style="padding:2rem;line-height:1.8;max-width:500px">
7539
7543
  <h2 style="margin-bottom:1rem">Welcome to mailx</h2>
@@ -7769,6 +7773,19 @@ async function loadFolderTree(container) {
7769
7773
  }
7770
7774
  return;
7771
7775
  }
7776
+ const mlPane = document.querySelector(".message-list");
7777
+ if (mlPane?.style.display === "none")
7778
+ mlPane.style.display = "";
7779
+ const splitterPane = document.getElementById("splitter-h");
7780
+ if (splitterPane?.style.display === "none")
7781
+ splitterPane.style.display = "";
7782
+ const mvHead = document.getElementById("mv-header");
7783
+ if (mvHead?.style.display === "none")
7784
+ mvHead.style.display = "";
7785
+ const mvPane = document.querySelector(".message-viewer");
7786
+ if (mvPane?.classList.contains("narrow-active") && document.getElementById("bootstrap-narration")) {
7787
+ mvPane.classList.remove("narrow-active");
7788
+ }
7772
7789
  const accountFolderData = await Promise.all(accounts.map(async (account) => {
7773
7790
  const accountKey = `account:${account.id}`;
7774
7791
  const accountExpanded = expandState[accountKey] !== false;
@@ -10372,6 +10389,10 @@ onWsEvent((event) => {
10372
10389
  if (startupStatus) startupStatus.textContent = msg;
10373
10390
  const slot = document.querySelector(".folder-loading");
10374
10391
  if (slot) slot.textContent = msg;
10392
+ const mlEmpty = document.querySelector("#ml-body .ml-empty");
10393
+ if (mlEmpty) mlEmpty.textContent = msg;
10394
+ const narrationSlot = document.getElementById("bootstrap-narration");
10395
+ if (narrationSlot) narrationSlot.textContent = msg;
10375
10396
  }
10376
10397
  break;
10377
10398
  }