Skip to content

Build your personal knowledge base with Trilium Notes

feat(search): trim the order by labels

Elian Doran868b699fe840
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index c2e448319d..ae90b90d28 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -1528,7 +1528,7 @@
"date_modified": "Date of last modification",
"content_size": "Note content size",
"content_and_attachments_size": "Note content size including attachments",
- "content_and_attachments_and_revisions_size": "Note content size including attachments and revisions",
+ "content_and_attachments_and_revisions_size": "Note size with attachments & revisions",
"revision_count": "Number of revisions",
"children_count": "Number of children notes",
"parent_count": "Number of clones",
@@ -1536,11 +1536,11 @@
"owned_relation_count": "Number of relations",
"target_relation_count": "Number of relations targeting the note",
"random": "Random order",
- "asc": "Ascending (default)",
+ "asc": "Ascending",
"desc": "Descending"
},
"search_script": {
- "title": "Search script",
+ "title": "Search script",
"placeholder": "search for note by its name",
"description1": "Search script allows to define search results by running a script. This provides maximal flexibility when standard search doesn't suffice.",
"description2": "Search script must be of type \"code\" and subtype \"JavaScript backend\". The script needs to return an array of noteIds or notes.",
@@ -1549,7 +1549,7 @@
"note": "Note that search script and search string can't be combined with each other."
},
"search_string": {
- "title_column": "Search string",
+ "title_column": "Search string",
"placeholder": "Ctrl+Space for suggestions, @ for a note, Shift+Enter for a new line, Enter to search",
"search_syntax": "Search syntax",
"also_see": "also see",
diff --git a/apps/client/src/widgets/search/SearchDefinition.css b/apps/client/src/widgets/search/SearchDefinition.css
index 82794b1ade..4e6058dd50 100644
--- a/apps/client/src/widgets/search/SearchDefinition.css
+++ b/apps/client/src/widgets/search/SearchDefinition.css
@@ -61,6 +61,14 @@
padding-block: 0.25rem;
}
+ .search-option.orderBy .search-option-fields {
+ flex-wrap: nowrap;
+ }
+
+ .search-option.orderBy .form-select:first-of-type {
+ flex: 1 1 auto;
+ }
+
.search-option-fields > :is(.search-string, .input-group, .search-option-row) {
flex: 1 1 16rem;
}