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:
parent
8ecc1a4fce
commit
b470e01f84
10 changed files with 10 additions and 10 deletions
|
@ -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}]" %>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue