From: Herve Saint-Amand Date: Thu, 9 Feb 2017 21:39:49 +0000 (+0000) Subject: Make the mails squeezable on narrow screens X-Git-Tag: live~3542^2~6 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/82a6bb0d5afb3013a1a91a84e129ebd5a0e7dc5f Make the mails squeezable on narrow screens --- diff --git a/app/views/layouts/notifier.html.erb b/app/views/layouts/notifier.html.erb index 531575beb..1ab9493ba 100644 --- a/app/views/layouts/notifier.html.erb +++ b/app/views/layouts/notifier.html.erb @@ -6,14 +6,15 @@
- +
-
<%= image_tag attachments["logo.png"].url, alt: "OpenStreetMap", title: "OpenStreetMap", height: "30", width: "30", border: "0" %> + <%# the "width: 100%" here looks wrong, but I couldn't find a better way of making Outlook give this cell full width %> + <%# NB we need "text-decoration: none" twice: GMail only honours it on the but Outlook only on the %> OpenStreetMap diff --git a/app/views/notifier/_message_body.html.erb b/app/views/notifier/_message_body.html.erb index d66b31aae..485cd3c44 100644 --- a/app/views/notifier/_message_body.html.erb +++ b/app/views/notifier/_message_body.html.erb @@ -1,4 +1,4 @@ - +
-
<%= link_to( @@ -14,7 +14,7 @@ :target => "_blank" ) %> + <%= body %>