From 9c617d051e08a4a0335d8375e91d87a58c7e720e Mon Sep 17 00:00:00 2001 From: "James A. Anderson" Date: Fri, 21 Jun 2013 18:13:52 -0400 Subject: [PATCH] Correctly resize big images in preview http://meta.discourse.org/t/correctly-resize-big-images-in-preview/4426/4 --- app/assets/stylesheets/application/compose.css.scss | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/stylesheets/application/compose.css.scss b/app/assets/stylesheets/application/compose.css.scss index b25c2a017..f837593a8 100644 --- a/app/assets/stylesheets/application/compose.css.scss +++ b/app/assets/stylesheets/application/compose.css.scss @@ -293,8 +293,7 @@ #wmd-input, #wmd-preview { color: $black; img { - // Otherwise we get the wrong size in JS - max-width: none; + max-width: 100%; border-radius: 4px; moz-border-radius: 4px; webkit-border-radius: 4px;