]> git.openstreetmap.org Git - rails.git/commitdiff
Wrap issue comment rich text in div
authorAnton Khorev <tony29@yandex.ru>
Thu, 9 Jun 2022 13:37:20 +0000 (16:37 +0300)
committerTom Hughes <tom@compton.nu>
Thu, 9 Jun 2022 18:20:36 +0000 (19:20 +0100)
app/views/issues/_comments.html.erb

index 390977b655601e54b3710ee93b9b4f7025517014..709080f9ced839a3b1f9227d3a0705f06c65034f 100644 (file)
@@ -9,7 +9,7 @@
           <%= t ".comment_from_html", :user_link => link_to(comment.user.display_name, user_path(comment.user)),
                                       :comment_created_at => l(comment.created_at.to_datetime, :format => :friendly) %>
         </p>
-        <p><%= comment.body.to_html %></p>
+        <div class="richtext text-break"><%= comment.body.to_html %></div>
       </div>
     </div>
     <hr>