From a6cbde88bbfa4b6430ec99c0f092122797d8bac2 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Sun, 15 Feb 2026 01:57:10 +0200 Subject: [PATCH] client/list view: add an alternate style for search results --- .../collections/legacy/ListOrGridView.css | 42 +++++++++++++++++++ .../collections/legacy/ListOrGridView.tsx | 6 +-- 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/apps/client/src/widgets/collections/legacy/ListOrGridView.css b/apps/client/src/widgets/collections/legacy/ListOrGridView.css index d4596afe88..6685025383 100644 --- a/apps/client/src/widgets/collections/legacy/ListOrGridView.css +++ b/apps/client/src/widgets/collections/legacy/ListOrGridView.css @@ -209,6 +209,48 @@ } } +.nested-note-list.search-results { + span.tn-icon + span > span { + display: flex; + flex-direction: column-reverse; + align-items: flex-start; + } + + small { + line-height: .85em; + } + + .note-path { + margin-left: 0; + font-size: .85em; + line-height: .85em; + font-weight: 500; + letter-spacing: .5pt; + } + + .tn-icon { + display: flex; + justify-content: center; + align-items: center; + margin-inline-end: 12px; + background: rgb(88, 88, 88); + border-radius: 50%; + width: 1.75em; + height: 1.75em; + font-size: 1.2em; + } + + .note-book-title { + --link-hover-background: transparent; + } + + .ck-find-result { + background: transparent; + color: var(--quick-search-result-highlight-color); + font-weight: 600; + text-decoration: underline; + } +} .note-content-preview:has(.note-book-content:empty) { display: none; diff --git a/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx b/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx index 3a3b2c9974..1eba122f9b 100644 --- a/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx +++ b/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx @@ -36,7 +36,7 @@ export function ListView({ note, noteIds: unfilteredNoteIds, highlightedTokens } { noteIds.length > 0 &&
{!hasCollectionProperties && } - + {pageNotes?.map(childNote => ( setExpanded(!isExpanded)} data-note-id={note.noteId} >
- + setExpanded(!isExpanded)}/>