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 %>

View File

@@ -29,7 +29,11 @@
<%= link_to "post ##{post_disapproval.post_id}", post_path(post_disapproval.post_id) %>
<%= link_to "»", moderator_post_disapprovals_path(search: params[:search].merge(post_id: post_disapproval.post_id)) %>
</td>
<td class="col-expand"><%= format_text(post_disapproval.message) %></td>
<td class="col-expand">
<div class="prose">
<%= format_text(post_disapproval.message) %>
</div>
</td>
<td>
<%= link_to post_disapproval.reason.humanize, moderator_post_disapprovals_path(search: params[:search].merge(reason: post_disapproval.reason)) %>
</td>