diff options
| author | 2022-07-19 12:56:09 +0200 | |
|---|---|---|
| committer | 2022-07-19 12:56:09 +0200 | |
| commit | 2d807e06b1abffdbc40a60c3623e22e3c6b818c6 (patch) | |
| tree | ab2178b30434ebd4d8ec911d12ee39a8f2cd0522 /app/views/stats/idle.phtml | |
| parent | 6352a1dccbac03a9582810e5d284ebac54f24f5b (diff) | |
Fix/Improved: Slider mobile (#4416)
* add close button, add content slider div
* add &ajax=1#slider to the links
* CSS
* fix showPW functionality
* open slider after received Ajax
* do not show empty slider
* RTL CSS
* fixed code smell
* improved: links prep via JS
* Redirect anchor
* enable #anchors in printuri()
* enable #slider when config was saved
* Active sliding via JS
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/stats/idle.phtml')
| -rw-r--r-- | app/views/stats/idle.phtml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtml index 0fa490372..9dbfbf4ab 100644 --- a/app/views/stats/idle.phtml +++ b/app/views/stats/idle.phtml @@ -50,13 +50,16 @@ <?php } ?> </main> -<?php $class = $this->displaySlider ? ' active' : ''; ?> +<?php $class = isset($this->feed) ? ' active' : ''; ?> <aside id="slider" class="scrollbar-thin<?= $class ?>"> - <?php + <a class="toggle_aside" href="#close"><img class="icon" src="../themes/icons/close.svg" loading="lazy" alt="❌"></a> + <div id="slider-content"> + <?php if (isset($this->feed)) { $this->renderHelper('feed/update'); } - ?> + ?> + </div> </aside> <a href="#" id="close-slider" class="<?= $class ?>"> <?= _i('close') ?> |
