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
style(autocomplete): lay the contained note row out with flex
Elian Doran71e49e640478
diff --git a/apps/client/src/widgets/react/NoteAutocomplete.css b/apps/client/src/widgets/react/NoteAutocomplete.cssindex 9bc609d92d..7b5ee9cb86 100644--- a/apps/client/src/widgets/react/NoteAutocomplete.css+++ b/apps/client/src/widgets/react/NoteAutocomplete.css@@ -65,21 +65,20 @@ span.aa-dropdown-menu .aa-suggestion {cursor: pointer;padding: 6px 16px;margin: 0;- white-space: nowrap;- > * {- white-space: normal;+ .note-suggestion {+ display: flex;}.icon {- display: inline-block;+ flex: none;line-height: inherit;- vertical-align: top;}+ /* The rest of the row, so the keys floated in it end at the row's padding. */.text {- display: inline-block;- width: calc(100% - 20px);+ flex: 1;+ min-width: 0;padding-inline-start: 4px;}