From c811811695ec3a7bca1bbd53cefb1cab9ee76696 Mon Sep 17 00:00:00 2001 From: John O'Nolan Date: Mon, 19 Aug 2013 10:29:09 +0200 Subject: [PATCH] Adjusted responsive image styles within Ghost editor to correctly size images within the preview pane. Closed #442 --- ghost/admin/assets/sass/layouts/editor.scss | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ghost/admin/assets/sass/layouts/editor.scss b/ghost/admin/assets/sass/layouts/editor.scss index 327a373425..98e3332898 100644 --- a/ghost/admin/assets/sass/layouts/editor.scss +++ b/ghost/admin/assets/sass/layouts/editor.scss @@ -336,13 +336,10 @@ } } img { - width: 100%; + max-width: 100%; height: auto; + margin: 0 auto; } - // prevent uploaded image from being streched in editor - .pre-image-uploader img { - width: auto; - } }