From 297cbbd8b311711a7ada830de0f4e9b6341efcc5 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 18 Feb 2026 09:15:38 +0200 Subject: [PATCH] ui/grid view: reuse some styles from list view --- .../collections/legacy/ListOrGridView.css | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/apps/client/src/widgets/collections/legacy/ListOrGridView.css b/apps/client/src/widgets/collections/legacy/ListOrGridView.css index adc6c8b2b3..6b55c0fade 100644 --- a/apps/client/src/widgets/collections/legacy/ListOrGridView.css +++ b/apps/client/src/widgets/collections/legacy/ListOrGridView.css @@ -99,6 +99,28 @@ overflow: auto; } +.nested-note-list-item, +.note-book-card { + h5 { + display: flex; + align-items: center; + font-size: 1em; + font-weight: normal; + margin: 0; + } + + .tn-icon { + font-size: 1.2em; + } + + .note-book-title { + --link-hover-background: transparent; + --link-hover-color: currentColor; + color: inherit; + font-weight: normal; + } +} + /* #region List view */ @keyframes note-preview-show { @@ -119,13 +141,6 @@ /* List item */ .nested-note-list-item { - h5 { - display: flex; - align-items: center; - font-size: 1em; - font-weight: normal; - margin: 0; - } .note-expander { margin-inline-end: 4px; @@ -136,14 +151,6 @@ .tn-icon { margin-inline-end: 8px; color: var(--note-list-view-icon-color); - font-size: 1.2em; - } - - .note-book-title { - --link-hover-background: transparent; - --link-hover-color: currentColor; - color: inherit; - font-weight: normal; } .note-path {