css: ensure dtext is always wrapped in .prose container.

Ensure dtext is always wrapped in a `<div class="prose">` or
`<span class="prose">` (for inline dtext) container so that dtext css is
properly applied.
This commit is contained in:
evazion
2019-09-17 00:28:41 -05:00
parent a5ef86bbe8
commit 73a4d675c0
18 changed files with 77 additions and 19 deletions

View File

@@ -10,7 +10,11 @@
<% @dashboard.mod_actions.each do |mod_action| %>
<tr>
<td><%= link_to_user mod_action.creator %></td>
<td><%= format_text(mod_action.description) %></td>
<td>
<div class="prose">
<%= format_text(mod_action.description) %>
</div>
</td>
</tr>
<% end %>
</tbody>

View File

@@ -11,7 +11,11 @@
<% @dashboard.user_feedbacks.each do |record| %>
<tr class="feedback-category-<%= record.category %>">
<td><%= link_to_user(record.user) %></td>
<td><%= format_text(record.body) %></td>
<td>
<div class="prose">
<%= format_text(record.body) %>
</div>
</td>
<td><%= time_ago_in_words_tagged(record.created_at) %></td>
</tr>
<% end %>