Skip to content

Build your personal knowledge base with Trilium Notes

style/list view: tweak indentation size

Adorian Doran80b488deec28
diff --git a/apps/client/src/widgets/collections/legacy/ListOrGridView.css b/apps/client/src/widgets/collections/legacy/ListOrGridView.css
index 618a79030e..a1586135dc 100644
--- a/apps/client/src/widgets/collections/legacy/ListOrGridView.css
+++ b/apps/client/src/widgets/collections/legacy/ListOrGridView.css
@@ -115,7 +115,11 @@
}
:root .nested-note-list {
- --card-nested-section-indent: 40px;
+ --card-nested-section-indent: 25px;
+}
+
+:root .nested-note-list.search-results {
+ --card-nested-section-indent: 32px;
}
/* List item */
diff --git a/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx b/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx
index 3f92f8ed62..d024e8616b 100644
--- a/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx
+++ b/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx
@@ -124,8 +124,8 @@ function ListNoteCard({ note, parentNote, highlightedTokens, currentLevel, expan
"archived": note.isArchived
})}
subSections={subSections}
- childrenVisible={isExpanded}
- hasAction
+ subSectionsVisible={isExpanded}
+ highlightOnHover
data-note-id={note.noteId}
>
<h5>