Merge pull request #5783 from nextcloud/outlook-max-width

Set max-width of image to 100px in Outlook as well
This commit is contained in:
Roeland Jago Douma 2017-07-24 07:15:41 +02:00 committed by GitHub
commit 989614f9d5
5 changed files with 18 additions and 0 deletions

View File

@ -100,7 +100,10 @@ EOF;
<tbody>
<tr style="padding:0;text-align:left;vertical-align:top">
<center data-parsed="" style="min-width:580px;width:100%%">
<!-- convince Outlook to have a max-width of 100px -->
<!--[if mso]><table><tr><td width="100"><![endif]-->
<img class="logo float-center" src="%s" alt="%s" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto">
<!--[if mso]></td></tr></table><![endif]-->
</center>
</tr>
</tbody>

View File

@ -182,7 +182,10 @@ class NewUserMailHelperTest extends TestCase {
<tbody>
<tr style="padding:0;text-align:left;vertical-align:top">
<center data-parsed="" style="min-width:580px;width:100%">
<!-- convince Outlook to have a max-width of 100px -->
<!--[if mso]><table><tr><td width="100"><![endif]-->
<img class="logo float-center" src="" alt="TestCloud" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto">
<!--[if mso]></td></tr></table><![endif]-->
</center>
</tr>
</tbody>
@ -415,7 +418,10 @@ EOF;
<tbody>
<tr style="padding:0;text-align:left;vertical-align:top">
<center data-parsed="" style="min-width:580px;width:100%">
<!-- convince Outlook to have a max-width of 100px -->
<!--[if mso]><table><tr><td width="100"><![endif]-->
<img class="logo float-center" src="" alt="TestCloud" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto">
<!--[if mso]></td></tr></table><![endif]-->
</center>
</tr>
</tbody>

View File

@ -23,7 +23,10 @@
<tbody>
<tr style="padding:0;text-align:left;vertical-align:top">
<center data-parsed="" style="min-width:580px;width:100%">
<!-- convince Outlook to have a max-width of 100px -->
<!--[if mso]><table><tr><td width="100"><![endif]-->
<img class="logo float-center" src="https://example.org/img/logo-mail-header.png" alt="TestCloud" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto">
<!--[if mso]></td></tr></table><![endif]-->
</center>
</tr>
</tbody>

View File

@ -23,7 +23,10 @@
<tbody>
<tr style="padding:0;text-align:left;vertical-align:top">
<center data-parsed="" style="min-width:580px;width:100%">
<!-- convince Outlook to have a max-width of 100px -->
<!--[if mso]><table><tr><td width="100"><![endif]-->
<img class="logo float-center" src="https://example.org/img/logo-mail-header.png" alt="TestCloud" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto">
<!--[if mso]></td></tr></table><![endif]-->
</center>
</tr>
</tbody>

View File

@ -23,7 +23,10 @@
<tbody>
<tr style="padding:0;text-align:left;vertical-align:top">
<center data-parsed="" style="min-width:580px;width:100%">
<!-- convince Outlook to have a max-width of 100px -->
<!--[if mso]><table><tr><td width="100"><![endif]-->
<img class="logo float-center" src="https://example.org/img/logo-mail-header.png" alt="TestCloud" align="center" style="-ms-interpolation-mode:bicubic;Margin:0 auto;clear:both;display:block;float:none;margin:0 auto;max-height:100%;max-width:100px;outline:0;text-align:center;text-decoration:none;width:auto">
<!--[if mso]></td></tr></table><![endif]-->
</center>
</tr>
</tbody>