From d704f8f808210171964d1822d5ffd6b227b702b2 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Mon, 27 Apr 2015 09:38:14 +0200 Subject: mailer previews, make sure labels and values line up. While this was true before when every `dd` had a value, this patch makes sure that everything keeps lining up even when the `dd` node is blank. --- railties/lib/rails/templates/rails/mailers/email.html.erb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'railties/lib/rails/templates') diff --git a/railties/lib/rails/templates/rails/mailers/email.html.erb b/railties/lib/rails/templates/rails/mailers/email.html.erb index 0b08a01896..cce818d103 100644 --- a/railties/lib/rails/templates/rails/mailers/email.html.erb +++ b/railties/lib/rails/templates/rails/mailers/email.html.erb @@ -39,6 +39,10 @@ padding: 1px; } + dd:empty:before { + content: "\00a0"; //   + } + iframe { border: 0; width: 100%; -- cgit v1.2.3