Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(email): image styles will be converted to attributes if possible
This will help with email clients that do not allow or ignore styles.
- Loading branch information
Showing
3 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* this fix will make sure resized images from editor content have a set width | ||
* the core htmlformatter will transform this style to an attribute which will help showing it correctly in some email clients like outlook | ||
*/ | ||
|
||
figure.image_resized img { | ||
width: 100%; | ||
} |