make sure categories don't wrap in email digests
This commit is contained in:
parent
e341fe9701
commit
f959bf7d93
|
@ -83,9 +83,9 @@ module UserNotificationsHelper
|
|||
|
||||
result = ""
|
||||
if category.parent_category.present?
|
||||
result << "<span style='background-color: ##{category.parent_category.color}; font-size: 12px; padding: 4px 2px; font-weight: bold; margin: 0; width: 2px;'> </span>"
|
||||
result << "<span style='background-color: ##{category.parent_category.color}; font-size: 12px; padding: 4px 2px; font-weight: bold; margin: 0; width: 2px; white-space:nowrap;'> </span>"
|
||||
end
|
||||
result << "<span style='background-color: ##{category.color}; color: ##{category.text_color}; font-size: 12px; padding: 4px 6px; font-weight: bold; margin: 0;'>#{category.name}</span>"
|
||||
result << "<span style='background-color: ##{category.color}; color: ##{category.text_color}; font-size: 12px; padding: 4px 6px; font-weight: bold; margin: 0; white-space:nowrap;'>#{category.name}</span>"
|
||||
result.html_safe
|
||||
end
|
||||
end
|
||||
|
|
|
@ -62,8 +62,6 @@ module Email
|
|||
style('.user-avatar img', nil, width: '45', height: '45')
|
||||
style('hr', 'background-color: #ddd; height: 1px; border: 1px;')
|
||||
style('.rtl', 'direction: rtl;')
|
||||
# we can do this but it does not look right
|
||||
# style('#main', 'font-family:"Helvetica Neue", Helvetica, Arial, sans-serif')
|
||||
style('td.body', 'padding-top:5px;', colspan: "2")
|
||||
correct_first_body_margin
|
||||
correct_footer_style
|
||||
|
|
Loading…
Reference in New Issue