From 934c9d3df835631d8152b101cd4572acfb23bd85 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 27 Aug 2025 02:38:51 +0300 Subject: [PATCH] style/quick search results: improve appearance --- apps/client/src/stylesheets/theme-next-dark.css | 1 + apps/client/src/stylesheets/theme-next-light.css | 1 + apps/client/src/stylesheets/theme-next/shell.css | 13 +++++++++++++ apps/client/src/widgets/quick_search.ts | 5 +++-- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.css index b32e29f2b..7053c2655 100644 --- a/apps/client/src/stylesheets/theme-next-dark.css +++ b/apps/client/src/stylesheets/theme-next-dark.css @@ -121,6 +121,7 @@ --quick-search-focus-border: #80808095; --quick-search-focus-background: #ffffff1f; --quick-search-focus-color: white; + --quick-search-result-content-background: #0000004d; --left-pane-collapsed-border-color: #0009; --left-pane-background-color: #1f1f1f; diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.css index deb9fb2ec..a08d683f8 100644 --- a/apps/client/src/stylesheets/theme-next-light.css +++ b/apps/client/src/stylesheets/theme-next-light.css @@ -115,6 +115,7 @@ --quick-search-focus-border: #00000029; --quick-search-focus-background: #ffffff80; --quick-search-focus-color: #000; + --quick-search-result-content-background: #00000017; --left-pane-collapsed-border-color: #0000000d; --left-pane-background-color: #f2f2f2; diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.css index 65763260a..7f8c692f6 100644 --- a/apps/client/src/stylesheets/theme-next/shell.css +++ b/apps/client/src/stylesheets/theme-next/shell.css @@ -604,6 +604,19 @@ div.quick-search .search-button.show { overflow: hidden; } +.quick-search .quick-search-item-icon { + vertical-align: text-bottom; +} + +:root .quick-search .search-result-content { + background-color: var(--quick-search-result-content-background); + border-radius: 4px; +} + +.quick-search .dropdown-item::after { + display: none; +} + /* * TREE PANE */ diff --git a/apps/client/src/widgets/quick_search.ts b/apps/client/src/widgets/quick_search.ts index 820c7fbe6..ea2df5f46 100644 --- a/apps/client/src/widgets/quick_search.ts +++ b/apps/client/src/widgets/quick_search.ts @@ -22,8 +22,9 @@ const TPL = /*html*/` } .quick-search .dropdown-menu { - max-height: 600px; - max-width: 600px; + max-height: 80vh; + min-width: 400px; + max-width: 720px; overflow-y: auto; overflow-x: hidden; text-overflow: ellipsis;