Making note previews within note folder show images fit perfectly to the note preview. And Also increasing cards per row. #6275
Replies: 1 comment 20 replies
-
You can improve image fitting and increase the number of note cards per row in Trilium by adding custom CSS. There aren't built-in UI settings for this, but you can create a CSS code note with the /* Make images fit inside note cards without cropping */
.note-card-image {
object-fit: contain !important;
width: 100% !important;
height: 200px !important; /* Adjust as needed */
background: #fff; /* Optional: adds a background for images with transparency */
}
/* Increase cards per row by adjusting the grid */
.note-list {
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
gap: 12px !important; /* Adjust spacing between cards */
} To apply this:
You can tweak the To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a bunch of books/comic books with their cover at the top as a image file like a jpg but the issue is it doesn't fit or shows very small or shows a extremely zoomed in to the image preview. Is there a way to make the images in the note cards show perfectly as in fit perfectly? And also from resizing is there a way to add more cards per row or just dynamically fit the sizing of the image to show in the note preview and the amount cards in a row?
Beta Was this translation helpful? Give feedback.
All reactions