Skip to content

Build your personal knowledge base with Trilium Notes

fix(collections/grid): not displaying some images properly (closes #7969)

Elian Doran0027bca415b6
diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.css
index b896d4e560..7e886d4324 100644
--- a/apps/client/src/stylesheets/theme-next/base.css
+++ b/apps/client/src/stylesheets/theme-next/base.css
@@ -748,11 +748,6 @@ li.dropdown-item a.dropdown-item-button:focus-visible {
filter: contrast(105%);
}
-.note-list.grid-view .note-book-card img {
- object-fit: cover !important;
- width: 100%;
-}
-
.note-list.grid-view .ck-content {
line-height: 1.3;
}
diff --git a/apps/client/src/widgets/collections/legacy/ListOrGridView.css b/apps/client/src/widgets/collections/legacy/ListOrGridView.css
index 2a6b25366a..c6b21c0b1f 100644
--- a/apps/client/src/widgets/collections/legacy/ListOrGridView.css
+++ b/apps/client/src/widgets/collections/legacy/ListOrGridView.css
@@ -75,6 +75,7 @@
justify-content: center;
text-align: center;
padding: 10px;
+ flex-grow: 1;
}
.note-book-content.type-image img, .note-book-content.type-canvas svg {
@@ -141,4 +142,4 @@
border: 1px solid var(--main-border-color);
background: var(--more-accented-background-color);
}
-/* #endregion */
\ No newline at end of file
+/* #endregion */