From 7c9d1170e22c3868a179b4a688916a9de6a56ea6 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Wed, 15 Oct 2025 16:51:24 -0700 Subject: [PATCH] reposition showText/showHtml --- static/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index a8fea0e..7df00a1 100644 --- a/static/index.html +++ b/static/index.html @@ -142,8 +142,9 @@ async function loadMessageContent(messageId) { try { const msg = await api(`message/${messageId}`); div.innerHTML = ` -
${escapeHtml(msg.text_content)}
${msg.html_content ? `` : ''} +
+
${escapeHtml(msg.text_content)}
${msg.attachments.length ? `
Attachments: ${msg.attachments.map(a => escapeHtml(a.filename)).join(', ')}
` : ''} `; div.dataset.html = msg.html_content || ''; @@ -157,8 +158,9 @@ function showHtml(messageId) { const html = div.dataset.html; if (html) { div.innerHTML = ` -
${html}
+
+
${html}
`; } }