fix(email-renderer): constrain images to available content width
Quality / quality (ubuntu-latest) (push) Failing after 0s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
Clintchiz committed 2026-09-05 14:00:47 +05:30
1 parent 42b91f765d
commit bb28b8759a
3 files changed
+5 -4

No files matched your search

@@ -54,6 +54,7 @@ test("product and RSS images survive HTML, AMP and strict MJML exports", async (
const result = await renderEmail(document(type, props), { amp: true, mjml: true });
expect(result.ok).toBe(true);
if (!result.ok) continue;
expect(result.value.parts.html.content).toContain('width:100%;max-width:320px;');
for (const output of [
result.value.parts.html.content,
result.value.parts.amp?.content,