Skip to content

Build your personal knowledge base with Trilium Notes

feat(autocomplete): stack the note path above the title on mobile

Elian Doran87e91cfbfb79
diff --git a/apps/client/src/widgets/react/NoteAutocomplete.css b/apps/client/src/widgets/react/NoteAutocomplete.css
index 3ec32db584..2db8ff574a 100644
--- a/apps/client/src/widgets/react/NoteAutocomplete.css
+++ b/apps/client/src/widgets/react/NoteAutocomplete.css
@@ -130,6 +130,30 @@
}
}
+ body.mobile & {
+ > span:not([class]) {
+ align-items: center;
+ }
+
+ .note-suggestion-header {
+ flex-direction: column-reverse;
+ align-items: stretch;
+ gap: 0;
+ }
+
+ .note-suggestion-path {
+ flex: none;
+ min-width: 0;
+ text-align: start;
+ font-size: 0.75em;
+ line-height: 1.3;
+ }
+ }
+
+ body.mobile:not([dir=rtl]) & .note-suggestion-path {
+ text-align: left;
+ }
+
.note-suggestion-description {
display: block;
font-size: small;