Skip to content

Commit

Permalink
Force word wrap in tag table
Browse files Browse the repository at this point in the history
Bootstrap disables word wrap in rtl, this overrides it.
  • Loading branch information
AntonKhorev committed Apr 17, 2024
1 parent 0547bda commit da454f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/assets/stylesheets/common.scss
Expand Up @@ -616,6 +616,8 @@ tr.turn {
.browse-tag-list {
table-layout: fixed;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-word;

tr:last-child th, tr:last-child td {
border-bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion app/views/browse/_tag_details.html.erb
@@ -1,7 +1,7 @@
<% unless tag_details.empty? %>
<h4><%= t ".tags" %></h4>
<div class='mb-3 border border-secondary-subtle rounded overflow-hidden'>
<table class='mb-0 browse-tag-list table align-middle text-break'>
<table class='mb-0 browse-tag-list table align-middle'>
<%= render :partial => "browse/tag", :collection => tag_details.sort %>
</table>
</div>
Expand Down

0 comments on commit da454f0

Please sign in to comment.