diff options
| author | 2023-04-15 21:13:56 +0200 | |
|---|---|---|
| committer | 2023-04-15 21:13:56 +0200 | |
| commit | 789c44b50222a24c565c783dbaf53d6ae465fc1d (patch) | |
| tree | c1fc9cda11c5ceacc25e2e6b39cafd0d0fd87f93 /p/scripts/global_view.js | |
| parent | a19b56064d74ae871abd52903778e0d5c35af896 (diff) | |
Improved: global view: mobile view (#5297)
* improved overlay + visible close button
* duplicate of line 2109
* delete #panel .close from frss.css
* set background colors in each theme
* fix Ansum and Mapco theme
* fix Nord theme
* frss.css
* only 1 scroll bar
* fix the closer background in some themes
* fix scrolling
* fix fix
Diffstat (limited to 'p/scripts/global_view.js')
| -rw-r--r-- | p/scripts/global_view.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/p/scripts/global_view.js b/p/scripts/global_view.js index e1afae0b8..2ada3e7a9 100644 --- a/p/scripts/global_view.js +++ b/p/scripts/global_view.js @@ -33,6 +33,7 @@ function load_panel(link) { document.getElementById('overlay').classList.add('visible'); panel.classList.add('visible'); + document.documentElement.classList.add('slider-active'); // Force the initial scroll to the top. // Without it, if one scrolls down in a category (for instance) @@ -70,6 +71,7 @@ function init_close_panel() { panel.innerHTML = ''; panel.classList.remove('visible'); document.getElementById('overlay').classList.remove('visible'); + document.documentElement.classList.remove('slider-active'); return false; }; document.addEventListener('keydown', ev => { |
