Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Allow styles of comment in the mail

Henriette Darge75850681bea4
diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb
index b736923f500..37c8ceafda6 100644
--- a/app/views/layouts/mailer.html.erb
+++ b/app/views/layouts/mailer.html.erb
@@ -68,6 +68,12 @@ See COPYRIGHT and LICENSE files for more details.
margin-left: 2.4em;
padding-left: 0.6em;
}
+ pre {
+ white-space: normal;
+ }
+ img {
+ width: 100%;
+ }
.footer {
font-size: 0.8em;
font-style: italic;
diff --git a/app/views/work_package_mailer/mentioned.html.erb b/app/views/work_package_mailer/mentioned.html.erb
index 97e0b4371bc..39b7b539acf 100644
--- a/app/views/work_package_mailer/mentioned.html.erb
+++ b/app/views/work_package_mailer/mentioned.html.erb
@@ -18,10 +18,10 @@
unique_reasons: [:mentioned],
show_count: false
} do %>
- <table <%= placeholder_table_styles %>>
+ <table <%= placeholder_table_styles(width:'100%',style: 'width:100%;') %>>
<tr>
- <td style="color: #878787; line-height: 24px; font-size: 14px; white-space: normal;">
- <%= simple_format @journal.notes %>
+ <td style="color: #878787; line-height: 24px; font-size: 14px; white-space: normal; overflow: hidden; max-width: 100%; width: 100%;">
+ <%= format_text @journal.notes, only_path: false %>
</td>
</tr>
</table>