fix: stop a long recipient list or subject crowding out the message in the composer and reader

This commit is contained in:
Linus Rath
2026-11-03 08:17:40 +01:00
parent 4c1150c7f8
commit 55ed9030e8
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -6089,7 +6089,8 @@ export function RecipientChipInput({
<div className="flex-1 min-w-0">
<div
className={cn(
"flex flex-wrap items-center gap-1 min-h-[32px] cursor-text",
// A long list scrolls by itself, or a reply-all to 80 people leaves no room for the text.
"flex flex-wrap items-center gap-1 min-h-[32px] max-h-[min(30dvh,10rem)] overflow-y-auto p-0.5 -m-0.5 cursor-text",
validationError && "ring-2 ring-red-500 dark:ring-red-400 rounded",
isDragOver && "ring-2 ring-primary/50 rounded bg-accent/20"
)}
+2 -1
View File
@@ -4765,7 +4765,8 @@ ${printWatermark ? printWatermark.html : ''}
{/* h2 under the app's h1 ("Inbox – Mail"); the reader's
blocks below are h3 and h4, so no level is skipped. */}
<h2 dir="auto" className={cn(
"text-foreground break-words min-w-0",
// The header stays while the message scrolls: a very long subject scrolls by itself.
"text-foreground break-words min-w-0 max-h-[35dvh] overflow-y-auto",
mvViewer ? "text-[1.375rem] leading-7 font-normal" : "text-lg lg:text-xl font-bold tracking-tight"
)}>
{email.subject || t('no_subject')}