From 3e31be3885d4fb2371422d732eb56479def3a53e Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 23 May 2017 17:24:43 -0400 Subject: [PATCH] change youtube popover UI --- app/assets/javascripts/recordings.coffee | 4 ++++ app/assets/stylesheets/main/landing.scss | 4 ++++ app/views/landing/rooms.html.erb | 23 +++++++++++++++-------- config/locales/en-us.yml | 2 ++ 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/recordings.coffee b/app/assets/javascripts/recordings.coffee index ff9fa804..96a55ad1 100644 --- a/app/assets/javascripts/recordings.coffee +++ b/app/assets/javascripts/recordings.coffee @@ -183,6 +183,10 @@ class @Recordings options.title = I18n.mail_recording $('#recordings').tooltip(options) + options.selector = '.disabled-tooltip' + options.title = I18n.youtube_disabled + $('#recordings').tooltip(options) + $(document).one "turbolinks:before-cache", => @getTable().api().clear().draw().destroy() diff --git a/app/assets/stylesheets/main/landing.scss b/app/assets/stylesheets/main/landing.scss index cf00e43a..1ad74b6b 100644 --- a/app/assets/stylesheets/main/landing.scss +++ b/app/assets/stylesheets/main/landing.scss @@ -101,3 +101,7 @@ .top-buffer { margin-top: 8px; } + +.tooltip-wrapper { + display: inline-block; +} diff --git a/app/views/landing/rooms.html.erb b/app/views/landing/rooms.html.erb index f3881873..1ca7b2ad 100644 --- a/app/views/landing/rooms.html.erb +++ b/app/views/landing/rooms.html.erb @@ -58,21 +58,22 @@
-
+
-
- -
+
+
+ +
@@ -80,14 +81,20 @@ <%= icon('envelope-o') %>
- +
+ +