Skip to content

Build your personal knowledge base with Trilium Notes

style/content manager/location view: do not break the item count on multiple lines

Adorian Doran51d029c09d9e
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 9f77f28938..c06815a374 100644
--- a/apps/client/src/widgets/type_widgets/options/content_manager.css
+++ b/apps/client/src/widgets/type_widgets/options/content_manager.css
@@ -43,6 +43,11 @@
opacity: .75;
}
+.content-manager-item-count {
+ flex-shrink: 0;
+ white-space: nowrap;
+}
+
.content-manager-loading {
opacity: 0.7;
}
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 fa4498ee20..0ca38b20a2 100644
--- a/apps/client/src/widgets/type_widgets/options/content_manager.tsx
+++ b/apps/client/src/widgets/type_widgets/options/content_manager.tsx
@@ -304,7 +304,7 @@ function LocationList({ pageNote, categories, highlightedTokens }: CategoryListP
if (!item) {
return (
- <span className="content-manager-property">
+ <span className="content-manager-property content-manager-item-count">
{t("content_manager.item_count", { count: itemCountByNoteId.get(note.noteId) ?? 0 })}
</span>
);