summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmood@users.noreply.github.com>2016-08-30 16:49:19 +0500
committerenahum <nahumhbl@gmail.com>2016-08-30 08:49:19 -0300
commitb847ed1875724aaa71ad8c51fbbd6192ae8dba02 (patch)
tree8de859de29d652415480eb9a132a075f3dbc17ed /templates
parent3731cc5b675ec8d36623906f28dd3289a8e9ba93 (diff)
downloadchat-b847ed1875724aaa71ad8c51fbbd6192ae8dba02.tar.gz
chat-b847ed1875724aaa71ad8c51fbbd6192ae8dba02.tar.bz2
chat-b847ed1875724aaa71ad8c51fbbd6192ae8dba02.zip
PLT-3973 - Fixing batched emails for mobile (#3896)
Diffstat (limited to 'templates')
-rw-r--r--templates/post_batched_post.html30
1 files changed, 19 insertions, 11 deletions
diff --git a/templates/post_batched_post.html b/templates/post_batched_post.html
index 76b35b0cd..35c2e4506 100644
--- a/templates/post_batched_post.html
+++ b/templates/post_batched_post.html
@@ -1,23 +1,31 @@
{{define "post_batched_post"}}
+<style type="text/css">
+ @media screen and (max-width: 480px){
+ a[class="post_btn"] {
+ float: none !important;
+ }
+ }
+</style>
+
<table style="border-top: 1px solid #ddd; padding: 20px 0; width: 100%">
<tr>
<td style="text-align: left">
- <span style="font-size: 16px; font-weight: bold; color: #555;" >
+ <span style="font-size: 16px; font-weight: bold; color: #555; margin: 0 0 5px; display: inline-block;" >
{{.Props.ChannelName}}
</span>
- <br/>
- <span style="font-weight: bold">
- @{{.Props.SenderName}}
- </span>
- <span style="color: #AAA; font-size: 12px; margin-left: 2px;">
- {{.Props.Date}}
- </span>
- </td>
- <td valign="top" style="width: 120px; padding-top: 3px;">
- <a href="{{.Props.PostLink}}" style="background: #2389D7; display: inline-block; border-radius: 2px; color: #fff; padding: 4px 0; width: 120px; text-decoration: none;">
+ <a class="post_btn" href="{{.Props.PostLink}}" style="font-size: 13px; background: #2389D7; display: inline-block; border-radius: 2px; color: #fff; padding: 6px 0; width: 120px; text-decoration: none; float:right; text-align: center; margin: 0 0 5px;">
{{.Props.Button}}
</a>
+ <br/>
+ <div style="margin: 5px 0 0;">
+ <span style="font-weight: bold; white-space: nowrap;">
+ @{{.Props.SenderName}}
+ </span>
+ <span style="color: #AAA; font-size: 12px; margin-left: 2px;">
+ {{.Props.Date}}
+ </span>
+ </div>
</td>
</tr>
<tr>