fix: show "no body content" instead of infinite skeleton for bodyless emails

This commit is contained in:
Linus Rath
2026-05-17 17:33:06 +02:00
parent 5de12dfb79
commit 1ba4a13353
6 changed files with 17 additions and 8 deletions
@@ -526,7 +526,7 @@ function EmailCard({
</div>
{!isExpanded && density !== 'extra-compact' && (
<p className="text-sm text-muted-foreground mt-1 line-clamp-2">
{email.preview || "No preview available"}
{email.preview || t('email_viewer.no_preview_available')}
</p>
)}
</div>