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}
`; } }