Skip to content

Build your personal knowledge base with Trilium Notes

style/quick search results: improve appearance

Adorian Doran934c9d3df835
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.css
index b32e29f2b3..7053c26555 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 deb9fb2ecc..a08d683f81 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 65763260ae..7f8c692f6d 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 820c7fbe64..ea2df5f466 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;