From 3be40852eb89652033e57820192dc6b3cdfe694d Mon Sep 17 00:00:00 2001 From: Awais Ansari <79941147+awais-ansari@users.noreply.github.com> Date: Mon, 25 Apr 2022 15:12:51 +0500 Subject: [PATCH] fix: make the post, comment, response content images responsive (#147) --- src/discussions/comments/comment/Comment.jsx | 2 +- src/discussions/comments/comment/Reply.jsx | 2 +- src/discussions/posts/post/Post.jsx | 2 +- src/index.scss | 8 ++++++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/discussions/comments/comment/Comment.jsx b/src/discussions/comments/comment/Comment.jsx index 7a96cb40..7d1d36a7 100644 --- a/src/discussions/comments/comment/Comment.jsx +++ b/src/discussions/comments/comment/Comment.jsx @@ -74,7 +74,7 @@ function Comment({ setEditing(false)} /> ) // eslint-disable-next-line react/no-danger - :
} + :
} setEditing(false)} /> // eslint-disable-next-line react/no-danger - :
} + :
}
diff --git a/src/discussions/posts/post/Post.jsx b/src/discussions/posts/post/Post.jsx index 709b4f80..d44b39d1 100644 --- a/src/discussions/posts/post/Post.jsx +++ b/src/discussions/posts/post/Post.jsx @@ -75,7 +75,7 @@ function Post({
{/* eslint-disable-next-line react/no-danger */} -
+
{topicContext && topic && (
diff --git a/src/index.scss b/src/index.scss index eb7db34c..973532fb 100755 --- a/src/index.scss +++ b/src/index.scss @@ -5,3 +5,11 @@ $fa-font-path: "~font-awesome/fonts"; @import "~font-awesome/scss/font-awesome"; + + +#post, #comment, #reply { + img { + height: auto; + max-width: 100%; + } +}