Skip to content

Build your personal knowledge base with Trilium Notes

client/content manager: tweak UI

Adorian Doranb36501b02004
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 14f83de74e..930b379407 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -2610,7 +2610,7 @@
"category_templates": "Templates",
"category_snippets": "Snippets",
"loading": "Retrieving content...",
- "sort_order": "Sort by",
+ "sort_order": "Sort by:",
"sort_by_name": "Name",
"sort_by_date_created": "Creation date",
"no_items": "No active content found.",
diff --git a/apps/client/src/widgets/type_widgets/options/content_manager.css b/apps/client/src/widgets/type_widgets/options/content_manager.css
index f648159785..eef3109737 100644
--- a/apps/client/src/widgets/type_widgets/options/content_manager.css
+++ b/apps/client/src/widgets/type_widgets/options/content_manager.css
@@ -1,10 +1,16 @@
.content-manager-toolbar {
display: flex;
+ justify-content: flex-end;
align-items: center;
gap: 0.75em;
margin-bottom: 1em;
}
+/* Space out the per-category lists, which bring no bottom margin of their own. */
+.content-manager-list .note-list.list-view {
+ margin-bottom: 2em;
+}
+
.content-manager-toolbar-label {
white-space: nowrap;
}
diff --git a/apps/client/src/widgets/type_widgets/options/content_manager.tsx b/apps/client/src/widgets/type_widgets/options/content_manager.tsx
index a706fb9250..332aed972c 100644
--- a/apps/client/src/widgets/type_widgets/options/content_manager.tsx
+++ b/apps/client/src/widgets/type_widgets/options/content_manager.tsx
@@ -47,7 +47,9 @@ export default function ContentManagerSettings({ note }: TypeWidgetProps) {
<SortOrderSelect currentValue={sortOrder} onChange={(newValue) => void setSortOrder(newValue)} />
</div>
- <CategoryList pageNote={note} categories={categories} />
+ <div className="content-manager-list">
+ <CategoryList pageNote={note} categories={categories} />
+ </div>
</>
);
}