Add style for images on email to turn them responsiveness (#7247)
* Change property for max-width to turn more responsive * Change css property for images to turn more responsive in mention email
This commit is contained in:
parent
5d97ca86c5
commit
d989b9d842
2 changed files with 20 additions and 0 deletions
|
|
@ -1,3 +1,13 @@
|
|||
<head>
|
||||
<style type="text/css">
|
||||
img {
|
||||
max-width:100%;
|
||||
height:auto;
|
||||
border:none
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<h2 style="font-size:25px;">
|
||||
<a href="<%= user_url(@mentioner) %>"><%= @mentioner.name %></a> just mentioned you in their <%= @mention.mentionable_type.downcase %>!
|
||||
</h2>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,13 @@
|
|||
<head>
|
||||
<style type="text/css">
|
||||
img {
|
||||
max-width:100%;
|
||||
height:auto;
|
||||
border:none
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<h2 style="font-size:25px;"><%= link_to(@comment.user.name, "#{user_url(@comment.user)}/#{}") %> replied to you on <%= community_name %></h2>
|
||||
<table>
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue