Fixes word wrapping issues

This commit is contained in:
Luke Barratt 2014-06-06 21:10:37 +01:00
parent 4b3fc78d49
commit 3d6904cd5f
5 changed files with 15 additions and 3 deletions

View file

@ -58,6 +58,11 @@
width: 100%;
position: relative;
.comment-body {
word-break: break-word;
word-wrap: break-word;
}
h1 {
font-size: 1em;
margin-bottom: .5em;

View file

@ -39,8 +39,8 @@
display: table-cell;
.contents {
word-break: break-word;
word-wrap: break-word;
word-break: break-all;
position: relative;
display: block;
padding: 0 10px;

View file

@ -58,6 +58,11 @@
width: 100%;
position: relative;
.comment-body {
word-break: break-word;
word-wrap: break-word;
}
h1 {
font-size: 1em;
margin-bottom: .5em;

View file

@ -39,8 +39,8 @@
display: table-cell;
.contents {
word-break: break-word;
word-wrap: break-word;
word-break: break-all;
position: relative;
display: block;
padding: 0 10px;

View file

@ -19,7 +19,9 @@
<% end %>
<% end %>
</div>
<%= comment.text_parsed.html_safe %>
<div class="comment-body">
<%= comment.text_parsed.html_safe %>
</div>
<p class="comment-detail"><%= comment.created_at.strftime("%-d %B %Y, %H:%M") %></h2>
</div>
</div>