Statiq.Web
Statiq.Web copied to clipboard
Restrict images to fit within the container
Story:
What we did:
Avalonia UI uses ![](images/cross-platform.png)
to show an image.
https://github.com/AvaloniaUI/avaloniaui.net/blob/master/wwwroot/home.md#inspection-support
Expected outcome:
I expect to see a larger image fit inside a smaller container.
What happens:
Does not fit inside the container.
Thank you @daveaglick
Totally agree - docs theme (and possibly others) should be updated with max-width styles for images.
Not sure if it's new or anything, but I found an img-responsive
style while looking through the Samson theme so <img src="path/to/image" class="img-responsive">
scales the image down if it's too big for the page width.
I haven't been able to figure out how to change the default image style for the markdown syntax though.