From f4bf95267d6f66788e4836934098489ae4c8c40b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Wed, 22 Dec 2021 10:34:15 +0100 Subject: [PATCH] Improve filterpanel and searchresult layout --- .../js/controllers/search_controller.js | 1 + .../Resources/Private/Partials/Icons.html | 4 +- .../Private/Partials/Search/FilterPanel.html | 109 ++++++++---------- .../Private/Partials/Search/Main.html | 5 +- .../Private/Partials/Search/Result.html | 8 +- .../Private/Templates/Searchbar/Index.html | 2 +- tailwind.config.js | 1 + 7 files changed, 59 insertions(+), 71 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/search_controller.js b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/search_controller.js index 095db01a..54846291 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/search_controller.js +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/search_controller.js @@ -40,6 +40,7 @@ export default class extends Controller { .then(this.parseHTML) .then(html => { this.resultsContainerTarget.innerHTML = html + window.scroll({ top: 0, left: 0, behavior: 'smooth' }) }) .finally(() => { this.loadingValue = false diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Icons.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Icons.html index 49540a2a..7e1cac24 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Icons.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Icons.html @@ -32,15 +32,13 @@ + - - - diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/FilterPanel.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/FilterPanel.html index 30a36c7d..4c704ae9 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/FilterPanel.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/FilterPanel.html @@ -3,13 +3,16 @@ xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers" xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"> -
- -
- -
+ +
+ - +
-
+ + - - -
+ class="p-4 border-t border-overlay-white bg-brand-gradient">
  • -
-
+
-
    +
    • -
        +