]> git.openstreetmap.org Git - rails.git/commitdiff
More tweaks for RTL email
authorTom Hughes <tom@compton.nu>
Wed, 3 Jul 2019 13:19:45 +0000 (14:19 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 3 Jul 2019 13:19:45 +0000 (14:19 +0100)
Fixes #2297

app/views/layouts/notifier.html.erb

index a5a8420f0fc25ab543259978e45dc57cae8f3e31..c10ed1c70f6d04352ea01fd137bb758f4635301d 100644 (file)
@@ -2,7 +2,7 @@
   <head>
     <meta charset="UTF-8"></meta>
   </head>
-  <body style="padding: 0; margin: 0; font-size: 14px; font-family: 'Helvetica Neue', Arial, sans-serif; color: #222">
+  <body style="direction: <%= I18n.t("html.dir") %>; padding: 0; margin: 0; font-size: 14px; font-family: 'Helvetica Neue', Arial, sans-serif; color: #222">
     <table style="background-color: #eee; width: 100%">
       <tr>
         <%# having width=100% on the table and then only a fixed width on the middle cell gives us a max-width that works in Outlook %>
@@ -10,7 +10,7 @@
         <td width="600" style="text-align: center; padding: 0px 7px">
           <table style="width: 100%; color: #222; margin-<%= style_left %>: auto; margin-<%= style_right %>: auto">
             <tr>
-              <td style="width: 30px; padding: 10px 10px 10px 0px">
+              <td style="width: 30px; padding-top: 10px; padding-<%= style_right %>: 10px; padding-bottom: 10px; padding-<%= style_left %>: 0px">
                 <a href="<%= @root_url %>" target="_blank">
                   <%= image_tag attachments["logo.png"].url, :alt => "OpenStreetMap", :title => "OpenStreetMap", :height => "30", :width => "30", :border => "0" %>
                 </a>