Skip to content

Commit

Permalink
Stop the image from squashing at small screen sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Sep 20, 2023
1 parent a4f83a0 commit fb6816d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
text-decoration-line: underline !important
}
@media (max-width: 600px) { <%# erblint:disable PartialInstanceVariable %>
.sm-h-auto {
height: auto !important
}
.sm-px-4 {
padding-left: 16px !important;
padding-right: 16px !important
Expand Down Expand Up @@ -113,7 +116,7 @@
<div role="separator" style="line-height: 48px">&zwj;</div>
<table style="width: 100%;" cellpadding="0" cellspacing="0" role="none">
<tr>
<td align="right"> <img src="<%= image_url('tailwind/illustration/reset-password.png') %>" height="213" style="max-width: 100%; vertical-align: middle; line-height: 1; border: 0" alt="">
<td align="right"> <img src="<%= image_url('tailwind/illustration/reset-password.png') %>" height="213" class="sm-h-auto" style="max-width: 100%; vertical-align: middle; line-height: 1; border: 0" alt="">
</td>
</tr>
</table>
Expand Down
4 changes: 2 additions & 2 deletions maizzle/src/templates/reset-password.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
<tr>
<td align="right">
<if condition="page.env === 'local'">
<img src="images/reset-password-illustration.png" height="213">
<img src="images/reset-password-illustration.png" height="213" class="sm:h-auto">
</if>
<else>
<img src="<%= image_url('tailwind/illustration/reset-password.png') %>" height="213">
<img src="<%= image_url('tailwind/illustration/reset-password.png') %>" height="213" class="sm:h-auto">
</else>
</td>
</tr>
Expand Down

0 comments on commit fb6816d

Please sign in to comment.