Skip to content

Build your personal knowledge base with Trilium Notes

images in note list preview should be shrinked to fit into view, fixes #3965

zadam611a9834611c
diff --git a/src/public/app/services/note_list_renderer.js b/src/public/app/services/note_list_renderer.js
index b22fdc827d..cf5f4e673d 100644
--- a/src/public/app/services/note_list_renderer.js
+++ b/src/public/app/services/note_list_renderer.js
@@ -30,6 +30,11 @@ const TPL = `
.note-list.grid-view .note-book-card {
max-height: 300px;
}
+
+ .note-list.grid-view .note-book-card img {
+ max-height: 220px;
+ object-fit: contain;
+ }
.note-list.grid-view .note-book-card:hover {
cursor: pointer;