diff options
| author | Junio C Hamano <gitster@pobox.com> | 2014-03-14 14:25:28 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2014-03-14 14:25:28 -0700 |
| commit | 3a66e1bf9c45ac16169c3b6d4a096d5af3ba6929 (patch) | |
| tree | b18bfe33c2caa9b9305214fb50e70b0117aa664e /gitweb/static/gitweb.css | |
| parent | Merge branch 'tr/diff-submodule-no-reuse-worktree' (diff) | |
| parent | gitweb: Avoid overflowing page body frame with large images (diff) | |
| download | git-3a66e1bf9c45ac16169c3b6d4a096d5af3ba6929.tar.gz git-3a66e1bf9c45ac16169c3b6d4a096d5af3ba6929.zip | |
Merge branch 'ak/gitweb-fit-image'
Instead of allowing an <img> to be shown in whatever size, force
scaling it to fit on the page with max-height/max-width css style
attributes.
* ak/gitweb-fit-image:
gitweb: Avoid overflowing page body frame with large images
Diffstat (limited to 'gitweb/static/gitweb.css')
| -rw-r--r-- | gitweb/static/gitweb.css | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gitweb/static/gitweb.css b/gitweb/static/gitweb.css index 3b4d833823..3212601032 100644 --- a/gitweb/static/gitweb.css +++ b/gitweb/static/gitweb.css @@ -32,6 +32,11 @@ img.avatar { vertical-align: middle; } +img.blob { + max-height: 100%; + max-width: 100%; +} + a.list img.avatar { border-style: none; } |
