From d7c6229aea3765e5f334d5ce6b3a682793d9b307 Mon Sep 17 00:00:00 2001 From: jelveh Date: Sun, 15 Dec 2024 21:39:05 -0800 Subject: [PATCH] update search position in both desktop and launcher --- src/gui/src/UI/UIWindowSearch.js | 2 +- src/gui/src/css/style.css | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/src/UI/UIWindowSearch.js b/src/gui/src/UI/UIWindowSearch.js index 91325e2c1..5b7c7cdca 100644 --- a/src/gui/src/UI/UIWindowSearch.js +++ b/src/gui/src/UI/UIWindowSearch.js @@ -49,7 +49,7 @@ async function UIWindowSearch(options){ allow_native_ctxmenu: true, allow_user_select: true, window_class: 'window-search', - backdrop: isMobile.phone, + backdrop: true, center: isMobile.phone, onAppend: function(el_window){ }, diff --git a/src/gui/src/css/style.css b/src/gui/src/css/style.css index c92eefe3b..07f441806 100644 --- a/src/gui/src/css/style.css +++ b/src/gui/src/css/style.css @@ -4611,12 +4611,15 @@ fieldset[name=number-code] { } /* Make sure the search wrapper doesn't interfere with scrolling */ -.device-phone .launch-search-wrapper { +.launch-search-wrapper { position: sticky; - top: 0; + top: -3px; z-index: 1; background: rgba(231, 238, 245); } +.device-phone .launch-search-wrapper { + top: 0; +} .device-phone .popover-launcher{ left: 50% !important;