fix: post editor images and preview images responsiveness (#206)

This commit is contained in:
Awais Ansari
2022-06-27 15:46:32 +05:00
committed by GitHub
parent a089235253
commit a49f71f717
3 changed files with 5 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ function PostPreviewPane({
return (
<>
{showPreviewPane && (
<div className={`p-2 bg-light-200 rounded shadow-sm ${isPost ? 'mt-3 mb-5.5' : 'my-3'}`} style={{ maxHeight: '200px', overflow: 'scroll' }}>
<div className={`p-2 bg-light-200 rounded shadow-sm post-preview ${isPost ? 'mt-3 mb-5.5' : 'my-3'}`} style={{ maxHeight: '200px', overflow: 'scroll' }}>
<Close onClick={() => setShowPreviewPane(false)} className="float-right text-primary-500 mb" />
<HTMLLoader htmlNode={htmlNode} />
</div>

View File

@@ -96,7 +96,7 @@ export default function TinyMCEEditor(props) {
+ ' | charmap',
content_css: false,
content_style: contentStyle,
body_class: 'm-2',
body_class: 'm-2 text-editor',
default_link_target: '_blank',
target_list: false,
images_upload_handler: uploadHandler,

View File

@@ -9,7 +9,9 @@ $fa-font-path: "~font-awesome/fonts";
#post,
#comment,
#reply,
.discussion-comments {
.discussion-comments,
.text-editor,
.post-preview {
img {
height: auto;
max-width: 100%;