From e3f9030463cf1964ce22a32d41d3374e3b2a322c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Fri, 19 Jun 2020 11:43:36 -0400 Subject: [PATCH] Fix for slider tooltip overlapping other content. --- views/_main.html | 13 ++++++++++--- views/settingsradarr.html | 1 + views/settingssonarr.html | 1 + views/settingssubtitles.html | 9 +++++++-- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/views/_main.html b/views/_main.html index c043b5532..9b92b5aff 100644 --- a/views/_main.html +++ b/views/_main.html @@ -72,6 +72,10 @@ .restart { color: orange; } + + .slider_span { + margin-left: 1em; + } {% endblock head %} @@ -346,9 +350,12 @@ $('[data-toggle="tooltip"]').tooltip({html: true}); }); - $(".slider").slider({ - tooltip: 'always', - tooltip_position: 'bottom' + $(".slider").slider(); + $(".slider").on("slide", function(slideEvt) { + $(this).next("span").text(slideEvt.value); + }); + $(".slider").each(function() { + $(this).next("span").text($(this).val()); }); events = io.connect({ diff --git a/views/settingsradarr.html b/views/settingsradarr.html index c518cf6c3..fc64adc08 100644 --- a/views/settingsradarr.html +++ b/views/settingsradarr.html @@ -114,6 +114,7 @@
+
diff --git a/views/settingssonarr.html b/views/settingssonarr.html index bfb0fd7ad..72ddc94e3 100644 --- a/views/settingssonarr.html +++ b/views/settingssonarr.html @@ -114,6 +114,7 @@
+
diff --git a/views/settingssubtitles.html b/views/settingssubtitles.html index 311cc6928..7ab3b805b 100644 --- a/views/settingssubtitles.html +++ b/views/settingssubtitles.html @@ -79,6 +79,7 @@
+

@@ -313,8 +314,9 @@
Only for score below
-
+
+

@@ -334,8 +336,9 @@
Only for score below
-
+
+

@@ -375,6 +378,7 @@
+

@@ -399,6 +403,7 @@
+