From 612dcb58057177e91f49194342cbe93ac702cadf Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Wed, 16 Jul 2014 12:23:54 -0700 Subject: [PATCH] we can't resize images on desktop, very dangerous --- app/assets/stylesheets/common/base/lightbox.scss | 4 ---- app/assets/stylesheets/desktop/topic-post.scss | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/common/base/lightbox.scss b/app/assets/stylesheets/common/base/lightbox.scss index 05168514873..d941d33c6da 100644 --- a/app/assets/stylesheets/common/base/lightbox.scss +++ b/app/assets/stylesheets/common/base/lightbox.scss @@ -11,10 +11,6 @@ .lightbox-wrapper { display: inline-block; - a img { - width: 100%; - height: 100%; - } } .meta { diff --git a/app/assets/stylesheets/desktop/topic-post.scss b/app/assets/stylesheets/desktop/topic-post.scss index f5e16df5c14..71f9e74ee3a 100644 --- a/app/assets/stylesheets/desktop/topic-post.scss +++ b/app/assets/stylesheets/desktop/topic-post.scss @@ -251,6 +251,9 @@ nav.post-controls { .embedded-posts { h1, h2, h3 {margin: 10px 0;} a.mention {background: darken(scale-color-diff(), 10%);} + /* this 100% stuff is normally VERY dangerous because we're overriding + painstakingly calculated exact image widths, but in expanded replies, we may + be below minimum width, and expanded replies are loaded on demand anyway */ p img { width: 100%; height: 100%;