From 3fde5b810fb88146cf7129274649ab54fe4046d4 Mon Sep 17 00:00:00 2001 From: Yash Dave Date: Sat, 26 Oct 2019 23:04:16 +0530 Subject: [PATCH] [deploy] Fix Image Overflow in Comment Preview - #4382 (#4466) * Update CSS for img in .comment-preview-div - Enforces `max-width:100%` on images in .comment-preview-div to prevent them from overflowing their container. * Implement Recommended Changes - Enforces `max-width:100%` on images in .comment-preview-div to prevent them from overflowing their container. --- app/assets/stylesheets/comments.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/stylesheets/comments.scss b/app/assets/stylesheets/comments.scss index 81aa93e49..1ce8aade8 100644 --- a/app/assets/stylesheets/comments.scss +++ b/app/assets/stylesheets/comments.scss @@ -345,6 +345,9 @@ a.header-link { code { word-wrap: break-word; } + .article-body-image-wrapper img { + max-width: 100%; + } } .actions { text-align: right;