Skip to content

Commit

Permalink
fix: apply width="auto" to mj-image parent wrapper
Browse files Browse the repository at this point in the history
this patch will display images with width="100%" correctly, instead of showing the default mj-body width (550px)
  • Loading branch information
DRoet committed Sep 22, 2020
1 parent 180677b commit a2234b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default (editor, { dc, coreMjmlModel, coreMjmlView }) => {

getMjmlTemplate() {
return {
start: `<mjml><mj-body><mj-column>`,
start: `<mjml><mj-body width="auto"><mj-column>`,
end: `</mj-column></mj-body></mjml>`,
};
},
Expand Down

0 comments on commit a2234b5

Please sign in to comment.