From 709509fd15162cc6f3795a4c71cc1b2b7620b1d2 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sat, 18 Mar 2017 11:53:50 -0700 Subject: [PATCH] Clean up CSS for comment contents, add word-break --- sass/_project-sass/_project-Main.scss | 6 +++++- views/_news_profile_comment.erb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sass/_project-sass/_project-Main.scss b/sass/_project-sass/_project-Main.scss index ec078bbc..a64532eb 100644 --- a/sass/_project-sass/_project-Main.scss +++ b/sass/_project-sass/_project-Main.scss @@ -961,7 +961,6 @@ a.tag:hover { background: #3399CC; } .news-item .title { - margin-bottom: .4em; position: relative; width: 100%; float: left; @@ -1054,6 +1053,11 @@ a.tag:hover { .news-item .actions, .news-item.comment .content { margin-left: 61px; } +.news-item.comment .content { + word-wrap: break-word; + overflow-wrap: break-word; + margin-bottom: 10px; +} .news-item.comment .comments .actions { margin-left: 47px; } diff --git a/views/_news_profile_comment.erb b/views/_news_profile_comment.erb index cc556d92..8a8cad98 100644 --- a/views/_news_profile_comment.erb +++ b/views/_news_profile_comment.erb @@ -22,5 +22,5 @@
-
<%== sanitize_comment profile_comment.message %>
+ <%== sanitize_comment profile_comment.message %>