diff --git a/app/emails/frontend/emails.html b/app/emails/frontend/emails.html index bd54aba..c5c6af2 100644 --- a/app/emails/frontend/emails.html +++ b/app/emails/frontend/emails.html @@ -263,12 +263,10 @@ } .email-actions { - display: flex; - gap: 0.5rem; padding: 1rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.05); background: var(--bg-body); - align-items: center; + flex-wrap: wrap; } .email-actions .btn-primary { @@ -1111,27 +1109,50 @@ function renderEmailDetail(email) { -
- - - - +
+
+ + + + +
+ ${email.attachments && email.attachments.length > 0 ? ` +
+ ${email.attachments.length} vedhæftning${email.attachments.length > 1 ? 'er' : ''} + ${email.attachments.map(att => { + const canPreview = canPreviewFile(att.content_type); + return ` + ${canPreview ? ` + + ` : ` + + ${att.filename} + + `} + `; + }).join('')} +
+ ` : ''}
${email.body_html ? `` : `
${escapeHtml(email.body_text || 'Ingen indhold')}
`}
- - ${attachmentsHtml} `; }