mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-12 21:02:17 +02:00
A message body whose first block has a top margin (a bare <p>, most Outlook mail) rendered with its final line cut off. The margin collapses through <body>, so body.scrollHeight under-reports by the margin height while the content's real bottom sits lower — and that short height is what we set on the iframe. Measured in Electron: a two-line reply reported 63px against a 73px content bottom, losing 10px. display: flow-root on <body> contains the margin (the existing rule only reset the *last* child's bottom margin). Pre-existing; not caused by quote collapsing. Also restore <body> attributes when re-serializing a prepared body. prepareEmailHtml joined head.innerHTML + body.innerHTML, dropping the <body> tag — and with it the bgcolor/style that 431 of 584 local messages rely on for their background (the host parser merges a nested <body>'s attributes onto its own). Serialize documentElement.innerHTML instead so the tag and its attributes survive. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| docs | ||
| experimental | ||
| python-sdk | ||
| rowboat | ||
| rowboatx | ||
| x | ||