fix: adjust text wrapping for email subject in EmailViewer and ThreadConversationView components

This commit is contained in:
Linus Rath
2026-03-16 22:22:05 +01:00
parent d86d109725
commit dc3e5b7706
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1822,8 +1822,8 @@ export function EmailViewer({
</Button>
)}
<div className="flex-1 min-w-0">
<div className="flex items-center gap-2">
<h1 className="text-lg lg:text-2xl font-bold text-foreground tracking-tight truncate">
<div className="flex items-start gap-2">
<h1 className="text-lg lg:text-2xl font-bold text-foreground tracking-tight break-words min-w-0">
{email.subject || t('no_subject')}
</h1>
{/* Star inline with subject (top toolbar mode) */}
@@ -149,7 +149,7 @@ export function ThreadConversationView({
<ArrowLeft className="w-5 h-5" />
</button>
<div className="flex-1 min-w-0">
<h1 className="font-semibold text-foreground truncate">
<h1 className="font-semibold text-foreground break-words">
{thread.latestEmail.subject || t("email_viewer.no_subject")}
</h1>
<p className="text-sm text-muted-foreground">