Make AMP brand logos responsive within configured width
This commit is contained in:
1 parent
33e350a66a
commit
df382ed550
4 files changed
+5
-3
No files matched your search
@@ -124,6 +124,8 @@ describe("email renderer", () => {
|
||||
expect(await validateMjml(result.value.exports!.mjml!)).toEqual([]);
|
||||
expect(result.value.parts.html.content).toContain('width="180" height="90"');
|
||||
expect(result.value.parts.amp?.content).toContain('width="180" height="90"');
|
||||
expect(result.value.parts.amp?.content).toContain('width="180" height="90" layout="responsive"');
|
||||
expect(result.value.parts.amp?.content).toContain('.brand-logo{max-width:180px;width:100%;margin:20px auto}');
|
||||
expect(result.value.exports?.mjml).toContain('width="180px" height="90px"');
|
||||
for (const value of ["0", "4001", "180px", "1;display:none"]) {
|
||||
const invalid = structuredClone(draft);
|
||||
|
||||
Reference in new issue
Block a user