Skip to content

Build your personal knowledge base with Trilium Notes

style/list view: handle the title and attributes when overflowing the container

Adorian Doranfea8de89c61d
diff --git a/apps/client/src/widgets/collections/legacy/ListOrGridView.css b/apps/client/src/widgets/collections/legacy/ListOrGridView.css
index 88aa719c11..4cee5d215b 100644
--- a/apps/client/src/widgets/collections/legacy/ListOrGridView.css
+++ b/apps/client/src/widgets/collections/legacy/ListOrGridView.css
@@ -153,6 +153,7 @@
.note-list-attributes {
flex-grow: 1;
+ margin-inline-start: 1em;
text-align: right;
font-size: .75em;
opacity: .75;
@@ -160,6 +161,16 @@
.nested-note-list-item-menu {
margin-inline-start: 8px;
+ flex-shrink: 0;
+ }
+}
+
+.nested-note-list:not(.search-results) h5 {
+ span.tn-icon + span,
+ .note-list-attributes {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
}