Skip to content

Commit

Permalink
Merge pull request #13747 from surajshetty3416/fix-email-style
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 committed Jul 20, 2021
2 parents ce7ca68 + e1c78bb commit e50059a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frappe/email/test_email_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def test_inline_styling(self):
'''
transformed_html = '''
<h3>Hi John</h3>
<p style="margin:5px 0 !important">This is a test email</p>
<p style="margin:1em 0 !important">This is a test email</p>
'''
self.assertTrue(transformed_html in inline_style_in_html(html))

Expand Down
8 changes: 7 additions & 1 deletion frappe/public/scss/email.bundle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ a {
}

p {
margin: 5px 0 !important;
margin: 1em 0 !important;
}

.with-container {
p {
margin: 5px 0 !important;
}
}

.ql-editor {
Expand Down

0 comments on commit e50059a

Please sign in to comment.