]> Lady’s Gitweb - Gitweb/commit
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)
commit1e1514777ab915e30626229f8fd99c44fba2cb1e2a98991a51a54f63dbfa3e7a
tree0aa7209f5d38029ec434a2d01f1ecbba0fbcbc3648c41d6e781971068ad36451
parent24eefea5ad720351fb757031814e2cce219725a5fa9b7e02c88eb45bd0219e1b
gitweb: Avoid overflowing page body frame with large images

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>
gitweb.perl
static/gitweb.css
This page took 0.112738 seconds and 4 git commands to generate.