Enable scroll in EmailComposerFields body and separate attachments

Merged
EL
1h ago
+2-0

Fixes #30447

Problem

In the side-panel email composer (EmailComposerFields.tsx), StyledBody has flex: 1 and min-height: 0 without overflow-y: auto, and StyledAttachments has zero top padding and no flex-shrink: 0. Long email bodies or quoted reply threads overflow out of view and overlap the attachment list.

Solution

  • Add overflow-y: auto to StyledBody so long email bodies and quoted threads scroll inside the composer body area.
  • Add flex-shrink: 0 and top spacing (${themeCssVariables.spacing[2]}) to StyledAttachments so attachments stay separated below the scrollable body.