Break long URLs where richtext is used.

For example on the blog post show page.

This uses https://getbootstrap.com/docs/4.4/utilities/text/#word-break to break long URLs on the blog post show view.
This commit is contained in:
Tobias Jordans 2020-12-27 14:19:36 +01:00
parent 8ecc1a4fce
commit b470e01f84
10 changed files with 10 additions and 10 deletions

View file

@ -15,7 +15,7 @@
:date => l(user.creation_time, :format => :friendly) %>
<% end %>
</p>
<div class="richtext"><%= user.description.to_html %></div>
<div class="richtext text-break"><%= user.description.to_html %></div>
</td>
<td>
<%= check_box_tag "user_#{user.id}", "", false, :name => "user[#{user.id}]" %>

View file

@ -163,7 +163,7 @@
</p>
</div>
<div class="user-description richtext"><%= @user.description.to_html %></div>
<div class="user-description richtext text-break"><%= @user.description.to_html %></div>
</div>