]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Avoid overflowing page body frame with large images
authorAndrew Keller <redacted>
Mon, 17 Feb 2014 14:25:13 +0000 (09:25 -0500)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:32 +0000 (00:51 -0400)
When displaying a blob in gitweb, if it's an image, specify constraints for
maximum display width and height to prevent the image from overflowing the
frame of the enclosing page_body div.

This change assumes that it is more desirable to see the whole image without
scrolling (new behavior) than it is to see every pixel without zooming
(previous behavior).

Signed-off-by: Andrew Keller <redacted>
Signed-off-by: Junio C Hamano <redacted>

No differences found
This page took 0.189221 seconds and 4 git commands to generate.