From 82a6bb0d5afb3013a1a91a84e129ebd5a0e7dc5f Mon Sep 17 00:00:00 2001 From: Herve Saint-Amand Date: Thu, 9 Feb 2017 21:39:49 +0000 Subject: [PATCH] Make the mails squeezable on narrow screens --- app/views/layouts/notifier.html.erb | 5 +++-- app/views/notifier/_message_body.html.erb | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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 @@ - +
- -- 2.43.2
<%= link_to( @@ -14,7 +14,7 @@ :target => "_blank" ) %> + <%= body %>