From da454f0593c6c0ab96d6a244d1f84e885c46ef37 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 17 Apr 2024 17:30:53 +0300 Subject: [PATCH] Force word wrap in tag table Bootstrap disables word wrap in rtl, this overrides it. --- app/assets/stylesheets/common.scss | 2 ++ app/views/browse/_tag_details.html.erb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 549226f58d..61c825fca8 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -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; diff --git a/app/views/browse/_tag_details.html.erb b/app/views/browse/_tag_details.html.erb index 2b4ec1bb07..cb876198c3 100644 --- a/app/views/browse/_tag_details.html.erb +++ b/app/views/browse/_tag_details.html.erb @@ -1,7 +1,7 @@ <% unless tag_details.empty? %>

<%= t ".tags" %>

- +
<%= render :partial => "browse/tag", :collection => tag_details.sort %>