mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-04 16:14:07 +00:00
fix: stop a long recipient list or subject crowding out the message in the composer and reader
This commit is contained in:
@@ -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"
|
||||
)}
|
||||
|
||||
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user