index: Show more notification body contents at index page
@af7aeebd233ce4edd576884f9360c460ae4c0041
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
... | ... | @@ -1172,12 +1172,7 @@ |
1172 | 1172 |
|
1173 | 1173 |
&.nowrap { |
1174 | 1174 |
min-height:20px; |
1175 |
- height:20px; |
|
1176 |
- .message { |
|
1177 |
- text-overflow: ellipsis; |
|
1178 |
- white-space: nowrap; |
|
1179 |
- overflow: hidden; |
|
1180 |
- } |
|
1175 |
+ max-height:200px; |
|
1181 | 1176 |
} |
1182 | 1177 |
} |
1183 | 1178 |
} |
--- app/views/index/partial_notifications.scala.html
+++ app/views/index/partial_notifications.scala.html
... | ... | @@ -67,7 +67,7 @@ |
67 | 67 |
} |
68 | 68 |
</div> |
69 | 69 |
<div class="message-wrap nowrap" id="message-@noti.id"> |
70 |
- <div class="message">@Html(HtmlUtil.defaultSanitize(noti.getMessage.replaceAll("\n", "<br/>\n")))</div> |
|
70 |
+ <div class="message">@Html(HtmlUtil.defaultSanitize(noti.getMessage.replaceAll("[^>]\n", "<br/>\n")))</div> |
|
71 | 71 |
</div> |
72 | 72 |
<div class="meta"> |
73 | 73 |
@if(user != null){ |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?