Skip to content

Image sizing

username-removed-386624 requested to merge image-sizing into master

What does this MR do?

Limits image height to fit the screen. The wrapping div is so the image is guaranteed to be a block element without the link area growing to be larger than the image itself.

Are there points in the code the reviewer needs to double check?

Make sure this can't be done in a more performant or concise way with Banzai.

Why was this MR needed?

Images were displayed at their full resolution, which made it difficult to read issues when the image height was greater than the viewport height (see #18861 (closed)).

What are the relevant issue numbers?

Fixes #18861 (closed).

Screenshots (if relevant)

Before:

Screen_Shot_2016-06-20_at_3.25.26_PM

After:

Screen_Shot_2016-06-20_at_3.24.57_PM

Does this MR meet the acceptance criteria?

cc: @jschatz1 @dzaporozhets @rspeicher

Merge request reports