From 464e6c6951da9cc0600741da58bea20f8229839a Mon Sep 17 00:00:00 2001 From: mokaddem Date: Fri, 10 Sep 2021 14:22:28 +0200 Subject: [PATCH] chg: [instance:search_all] Added support of no results --- templates/Instance/search_all.php | 6 +++++- .../element/layouts/header/header-right.php | 17 ----------------- webroot/css/layout.css | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/templates/Instance/search_all.php b/templates/Instance/search_all.php index 965cf94..7cffa3e 100644 --- a/templates/Instance/search_all.php +++ b/templates/Instance/search_all.php @@ -24,4 +24,8 @@ $sections[] = $section; } - echo implode('', $sections); + if (!empty($sections)) { + echo implode('', $sections); + } else { + echo sprintf('%s', __('- No result -')); + } diff --git a/templates/element/layouts/header/header-right.php b/templates/element/layouts/header/header-right.php index e74014d..81e168f 100644 --- a/templates/element/layouts/header/header-right.php +++ b/templates/element/layouts/header/header-right.php @@ -6,7 +6,6 @@
@@ -14,19 +13,3 @@ element('layouts/header/header-profile') ?>
- - \ No newline at end of file diff --git a/webroot/css/layout.css b/webroot/css/layout.css index 2ab3b7a..658f3a2 100644 --- a/webroot/css/layout.css +++ b/webroot/css/layout.css @@ -154,6 +154,20 @@ main.content { flex: 1 0 auto } +.top-navbar .global-search-container { + position: relative; +} + +.global-search-container #globalSearch { + padding-right: 26px; +} + +.top-navbar .global-search-container .search-input-container > i.icon { + position: absolute; + right: 8px; + line-height: 38px; +} + .right-navbar div.header-menu a.nav-link { margin: auto 0; }