decaf-dev / obsidian-vault-explorer

Explore your Obsidian vault in visual format
https://vaultexplorer.com
MIT License
90 stars 3 forks source link

Cover image fill #244

Closed decaf-dev closed 1 month ago

decaf-dev commented 2 months ago

Also, I hope that the Grid view supports displaying the first image in the note, not just the image link in the image attribute. And I hope that images can be set to display in a specific way: constrain(maintain aspect ratio) or fill (horizontally tile): image

image


Additionally, I would like to provide an alternative option to display using title instead of the file name. But this one is not very important I think... 🤔

Originally posted by @Moyf in https://github.com/decaf-dev/obsidian-vault-explorer/issues/40#issuecomment-2230951554

decaf-dev commented 1 month ago

@moyf Do you already have a property configured for your vault for "fill"?

Moyf commented 1 month ago

@Moyf Do you already have a property configured for your vault for "fill"?

I have an image property, but most of my notes just use the first image in note.

And now I see the image is filled, you have added this feature already? image

decaf-dev commented 1 month ago

@Moyf I use the object-fit css property. It is set to cover. However, this might not be the best display for all images.

decaf-dev commented 1 month ago

@Moyf Added in 1.41.0.