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/configure/queries.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/configure/queries.phtml')
| -rw-r--r-- | app/views/configure/queries.phtml | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/app/views/configure/queries.phtml b/app/views/configure/queries.phtml index 227acc777..93ed38e10 100644 --- a/app/views/configure/queries.phtml +++ b/app/views/configure/queries.phtml @@ -61,14 +61,17 @@ </form> </main> -<?php $class = $this->displaySlider ? ' active' : ''; ?> -<a href="#" id="close-slider" class="<?= $class ?>"> - <?= _i('close') ?> -</a> +<?php $class = ($this->query != null) ? ' active' : ''; ?> <aside id="slider" class="scrollbar-thin<?= $class ?>"> - <?php - if ($this->query != null) { - $this->renderHelper('configure/query'); - } - ?> +<a class="toggle_aside" href="#close"><img class="icon" src="../themes/icons/close.svg" loading="lazy" alt="❌"></a> + <div id="slider-content"> + <?php + if ($this->query != null) { + $this->renderHelper('configure/query'); + } + ?> + </div> </aside> +<a href="#" id="close-slider"> + <?= _i('close') ?> +</a> |
