diff --git a/index.html b/index.html index 2f6f1d11..d5c2a2fd 100644 --- a/index.html +++ b/index.html @@ -340,30 +340,11 @@ } .sp-tab-page { - visibility: hidden; - /* display: none; */ - flex: 1 1 auto; - /* overflow: scroll; */ - overflow-y: scroll; - padding: 12px 0; + display: none; + padding: 7px; flex-direction: column; - } - - .sp-tab-page.visible-hack { - display: flex; - /* overflow: hidden; */ - /* overflow-y: scroll; */ - /* position: fixed; */ - top: 25px; - visibility: visible; max-width: 100%; - width: 100%; - /* margin: 0px; */ - position: absolute; - width: 100%; - left: 0; - padding-left: 10px; - padding-right: 10px; + position: relative; } .sp-tab-page.visible { @@ -1124,7 +1105,7 @@
diff --git a/index.js b/index.js index b5beface..67bd517d 100644 --- a/index.js +++ b/index.js @@ -313,9 +313,9 @@ Array.from(document.querySelectorAll('.sp-tab')).forEach((theTab) => { .getAttribute('id') .startsWith(theTab.getAttribute('id')) ) { - tabPage.classList.add('visible-hack') + tabPage.classList.add('visible') } else { - tabPage.classList.remove('visible-hack') + tabPage.classList.remove('visible') } } )