Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(search): show a search field's completions over the quick search results
Elian Doran343cb0e8fbcd
diff --git a/apps/client/src/widgets/react/Popup.css b/apps/client/src/widgets/react/Popup.cssindex 523b0b55ff..8145b6f35b 100644--- a/apps/client/src/widgets/react/Popup.css+++ b/apps/client/src/widgets/react/Popup.css@@ -7,7 +7,8 @@ body .tn-popup {top: 0;left: 0;/* As a portaled dropdown menu: over a modal (1055) and a stacked quick-edit popup (1100), under- the prompts (2000) it can summon. */+ a search field's completions (1210, search_field_editor.css) and the prompts (2000) it can+ summon. */z-index: 1200;visibility: hidden;}diff --git a/apps/client/src/widgets/search_field_editor.css b/apps/client/src/widgets/search_field_editor.cssindex bc5a23f5c4..64d1929838 100644--- a/apps/client/src/widgets/search_field_editor.css+++ b/apps/client/src/widgets/search_field_editor.css@@ -33,10 +33,10 @@white-space: pre-wrap;}- /* Over Bootstrap dropdowns, which sit at 1000: the quick search hangs its results off this- same field, and the popup and its lint tooltips have to cover them. */+ /* Over a `Popup` (1200, Popup.css): the quick search's results hang off this field, and the+ completions and lint tooltips have to cover them. */.cm-editor .cm-tooltip {- z-index: 1010;+ z-index: 1210;}/* Outweighs CodeMirror's `&light .cm-tooltip`, which carries two classes. */