From 875319f910b87f88dbeb9646ef8f77358e8a529e Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 23 May 2022 17:41:33 +0200 Subject: [PATCH] fix overbaked solutio --- changedetectionio/static/js/tabs.js | 1 - changedetectionio/static/js/visual-selector.js | 2 -- changedetectionio/static/styles/styles.css | 3 +-- changedetectionio/static/styles/styles.scss | 2 +- changedetectionio/templates/edit.html | 4 ++-- 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/changedetectionio/static/js/tabs.js b/changedetectionio/static/js/tabs.js index 49a63a3b..f600ef47 100644 --- a/changedetectionio/static/js/tabs.js +++ b/changedetectionio/static/js/tabs.js @@ -11,7 +11,6 @@ window.addEventListener('hashchange', function() { while (tabs[0]) { tabs[0].classList.remove('active') } - document.getElementById("beta-logo").style.display = "none"; set_active_tab(); }, false); diff --git a/changedetectionio/static/js/visual-selector.js b/changedetectionio/static/js/visual-selector.js index 92f7faab..5da4428a 100644 --- a/changedetectionio/static/js/visual-selector.js +++ b/changedetectionio/static/js/visual-selector.js @@ -20,7 +20,6 @@ $(document).ready(function() { // For when the page loads if(!window.location.hash || window.location.hash != '#visualselector') { $("img#selector-background").attr('src',''); - $('#beta-logo').hide(); return; } @@ -57,7 +56,6 @@ $(document).ready(function() { function bootstrap_visualselector() { if ( 1 ) { - $('#beta-logo').show(); // bootstrap it, this will trigger everything else $("img#selector-background").bind('load', function () { console.log("Loaded background..."); diff --git a/changedetectionio/static/styles/styles.css b/changedetectionio/static/styles/styles.css index 2434cb59..c5514e20 100644 --- a/changedetectionio/static/styles/styles.css +++ b/changedetectionio/static/styles/styles.css @@ -434,8 +434,7 @@ and also iPads specifically. height: 50px; right: 0px; top: 0px; - position: absolute; - display: none; } + position: absolute; } #selector-header { padding-bottom: 1em; } diff --git a/changedetectionio/static/styles/styles.scss b/changedetectionio/static/styles/styles.scss index 2b7c96d0..304df5cc 100644 --- a/changedetectionio/static/styles/styles.scss +++ b/changedetectionio/static/styles/styles.scss @@ -619,8 +619,8 @@ $form-edge-padding: 20px; right: 0px; top: 0px; position: absolute; - display: none; } + #selector-header { padding-bottom: 1em; } diff --git a/changedetectionio/templates/edit.html b/changedetectionio/templates/edit.html index 8c657707..16c5ded5 100644 --- a/changedetectionio/templates/edit.html +++ b/changedetectionio/templates/edit.html @@ -31,8 +31,6 @@
- -
@@ -204,6 +202,8 @@ nav
+ +
{% if visualselector_enabled %}