kalvn / Shaarli-Material

Shaarli Material is a theme for Shaarli, the famous personal, minimalist, super-fast, database free, bookmarking service.
https://github.com/kalvn/Shaarli-Material
MIT License
250 stars 23 forks source link

Large pictures overflow in mobile view #104

Closed immanuelfodor closed 4 years ago

immanuelfodor commented 4 years ago

Hi, I've noticed a small bug after updating to the latest version in #95. It might have been present before, I just noticed it now.

When an image is inserted as a markdown image (![title](link)), if the image is wider than the card, it's overflowing to the right.

It would be nice to resize the image to the card's inner width by maintaining the aspect ratio.

Screenshot_20200409-063307

kalvn commented 4 years ago

There you go https://github.com/kalvn/Shaarli-Material/commit/42561fc1b1aeb5d1b754cd735888f0c7678c2492

immanuelfodor commented 4 years ago

Thank you for this fix as well, it looks good!