From 69b67f842536a8d116c1da2b11246038d99722b5 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Tue, 13 Dec 2016 09:30:25 -0500 Subject: [PATCH] last touchups --- app/assets/stylesheets/mobile.scss.erb | 3 ++- app/assets/stylesheets/notifications.scss.erb | 4 ++++ app/views/notifications/index.html.erb | 4 +++- app/views/shared/_mailer_unsubscribe_link.html.erb | 2 +- app/views/shared/_mailer_unsubscribe_link.text.erb | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/mobile.scss.erb b/app/assets/stylesheets/mobile.scss.erb index 8cdb3ae6..8deca0aa 100644 --- a/app/assets/stylesheets/mobile.scss.erb +++ b/app/assets/stylesheets/mobile.scss.erb @@ -240,8 +240,9 @@ position: relative; .unread-notifications-dot { - top: 17px; + top: 50%; left: 0px; + margin-top: -4px; } } } diff --git a/app/assets/stylesheets/notifications.scss.erb b/app/assets/stylesheets/notifications.scss.erb index d9602804..5058bc62 100644 --- a/app/assets/stylesheets/notifications.scss.erb +++ b/app/assets/stylesheets/notifications.scss.erb @@ -44,6 +44,10 @@ $unread_notifications_dot_size: 8px; margin-bottom: 0; } + .emptyInbox { + padding-top: 15px; + } + .notification:first-child { border-top: none; } diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index f2c98adf..fae96794 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -29,7 +29,9 @@ <% end %> <% if @notifications.count == 0 %> - You have ZERO unread notifications. Huzzah! +
+ You have ZERO unread notifications. Huzzah! +
<% end %> diff --git a/app/views/shared/_mailer_unsubscribe_link.html.erb b/app/views/shared/_mailer_unsubscribe_link.html.erb index 2bbe7a89..86d9408d 100644 --- a/app/views/shared/_mailer_unsubscribe_link.html.erb +++ b/app/views/shared/_mailer_unsubscribe_link.html.erb @@ -1,3 +1,3 @@ diff --git a/app/views/shared/_mailer_unsubscribe_link.text.erb b/app/views/shared/_mailer_unsubscribe_link.text.erb index 3a2f7d0d..e3acfcbd 100644 --- a/app/views/shared/_mailer_unsubscribe_link.text.erb +++ b/app/views/shared/_mailer_unsubscribe_link.text.erb @@ -2,4 +2,4 @@ You can unsubscribe from all Metamaps emails by visiting the following link: -<%= unsubscribe_notifications_url %> +<%= unsubscribe_notifications_url(https: !!Rails.env.production?) %>