mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-29 08:09:55 -04:00
FIX: Shouldn't overwrite styles in emails that we explicitly set, like category
colors.
This commit is contained in:
parent
5defaca197
commit
872cfff49b
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ module Email
|
|||
def add_styles(node, new_styles)
|
||||
existing = node['style']
|
||||
if existing.present?
|
||||
node['style'] = "#{existing}; #{new_styles}"
|
||||
# merge styles
|
||||
node['style'] = "#{new_styles}; #{existing}"
|
||||
else
|
||||
node['style'] = new_styles
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue