Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: properly align username for suppressed avatar images #2822

Merged
merged 1 commit into from Sep 25, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/email/styles.rb
Expand Up @@ -140,6 +140,7 @@ def to_html
def strip_avatars_and_emojis
@fragment.css('img').each do |img|
if img['src'] =~ /user_avatar/
img.parent['style'] = "vertical-align: top;" if img.parent.name == 'td'
img.remove
end

Expand Down Expand Up @@ -188,7 +189,7 @@ def strip_classes_and_ids
end

def reset_tables
style('table',nil, cellspacing: '0', cellpadding: '0', border: '0')
style('table', nil, cellspacing: '0', cellpadding: '0', border: '0')
end

def style(selector, style, attribs = {})
Expand Down