Skip to content

Commit

Permalink
Fix long lines in moderation action description
Browse files Browse the repository at this point in the history
Lines containing a long URL, for instance, would cause the text to
overflow its content box.
  • Loading branch information
myhro authored and pushcx committed Dec 22, 2023
1 parent 163b20e commit e55ca71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/application.css.erb
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,9 @@ table.data tr.nobottom td {
border-bottom: 0px;
padding-bottom: 0px;
}
table.data tr.nobottom td.wrap {
overflow-wrap: anywhere;
}
table.data.tall td {
vertical-align: top;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/moderations/_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</tr>
<tr class="<%= mod.reason.present?? "nobottom" : "" %>">
<td colspan=2></td>
<td>Action: <em><%= mod.action %></em></td>
<td class="wrap">Action: <em><%= mod.action %></em></td>
</tr>
<% if mod.reason.present? %>
<tr>
Expand Down

0 comments on commit e55ca71

Please sign in to comment.