Skip to content

Build your personal knowledge base with Trilium Notes

fix(autocomplete): draw the recent note groups as plain labels

Elian Dorance527ca94dc7
diff --git a/apps/client/src/widgets/react/NoteAutocomplete.css b/apps/client/src/widgets/react/NoteAutocomplete.css
index 0a9423295f..77c670c722 100644
--- a/apps/client/src/widgets/react/NoteAutocomplete.css
+++ b/apps/client/src/widgets/react/NoteAutocomplete.css
@@ -143,7 +143,18 @@
margin: 0;
padding: 10px 8px 2px;
font-size: 0.8em;
+ text-transform: none;
+ letter-spacing: normal;
color: var(--muted-text-color) !important;
+
+ /*
+ * The Next theme's `.dropdown-menu h6` draws a line under a group heading, placed for its own
+ * padding and reaching `--menu-padding-size` past the row, wider than this list's frame. The
+ * groups need no line, and its overhang would scroll the list sideways.
+ */
+ &::before {
+ content: none;
+ }
}
.note-autocomplete-menu li:first-child > .dropdown-header {