From 18f5751f3fa3d93ef95b0d6df7f05ea8089600ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 2 Jul 2014 14:56:09 +0200 Subject: [PATCH] BUGFIX: cap image widths in usercards & user profiles --- app/assets/stylesheets/desktop/poster_expansion.scss | 3 +++ app/assets/stylesheets/desktop/user.scss | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/app/assets/stylesheets/desktop/poster_expansion.scss b/app/assets/stylesheets/desktop/poster_expansion.scss index eef19000d82..a0ef3c851c8 100644 --- a/app/assets/stylesheets/desktop/poster_expansion.scss +++ b/app/assets/stylesheets/desktop/poster_expansion.scss @@ -66,6 +66,9 @@ max-height: 100px; overflow: auto; margin-bottom: 10px; + img { + max-width: 100%; + } } img.avatar { diff --git a/app/assets/stylesheets/desktop/user.scss b/app/assets/stylesheets/desktop/user.scss index 7c0040a871c..59d9f4f8d49 100644 --- a/app/assets/stylesheets/desktop/user.scss +++ b/app/assets/stylesheets/desktop/user.scss @@ -209,6 +209,10 @@ text-decoration: underline; text-shadow: rgba(0, 0, 0, 0.5) 0 1px 1px; } + + img { + max-width: 100%; + } } }