Skip to content

Commit 5965c24

Browse files
tbussmannmhagander
authored andcommitted
Specify email image width both in attributes and style
Apparently Apple mail ignores the width/height if specified in attributes, but work in style, so let's do both. Ref: https://www.caniemail.com/features/html-width/, point 3.
1 parent 4c824fe commit 5965c24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/news/mail/pgproject.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
{%block content%}
66
<div>
7-
<img style="float: left" height="50" width="50" src="cid:slonik.png" alt="PostgreSQL logo">
8-
<img style="float: right" height="50" width="50" src="cid:slonik.png" alt="PostgreSQL logo">
7+
<img style="float: left; width: 50px" height="50" width="50" src="cid:slonik.png" alt="PostgreSQL logo">
8+
<img style="float: right; width: 50px" height="50" width="50" src="cid:slonik.png" alt="PostgreSQL logo">
99
<h1>{{news.title}}</h1>
1010
</div>
1111
{{news.content|markdown}}

0 commit comments

Comments
 (0)