aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/comments/css/comments.scss12
-rw-r--r--apps/comments/lib/Activity/Provider.php2
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/comments/css/comments.scss b/apps/comments/css/comments.scss
index e631d6891ff..665051cf065 100644
--- a/apps/comments/css/comments.scss
+++ b/apps/comments/css/comments.scss
@@ -65,7 +65,7 @@
#commentsTabView .comment {
position: relative;
/** padding bottom is little more so that the top and bottom gap look uniform **/
- padding: 10px 0px 15px;
+ padding: 10px 0 15px;
}
#commentsTabView .comments .comment {
@@ -112,11 +112,11 @@
left: 0;
right: 0;
bottom: 0;
- background: -moz-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
- background: -webkit-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
- background: -o-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
- background: -ms-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
- background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
+ background: -moz-linear-gradient(rgba(var(--color-main-background), 0), var(--color-main-background));
+ background: -webkit-linear-gradient(rgba(var(--color-main-background), 0), var(--color-main-background));
+ background: -o-linear-gradient(rgba(var(--color-main-background), 0), var(--color-main-background));
+ background: -ms-linear-gradient(rgba(var(--color-main-background), 0), var(--color-main-background));
+ background: linear-gradient(rgba(var(--color-main-background), 0), var(--color-main-background));
background-repeat: no-repeat;
}
diff --git a/apps/comments/lib/Activity/Provider.php b/apps/comments/lib/Activity/Provider.php
index 4940bb6afec..719d4c8bb56 100644
--- a/apps/comments/lib/Activity/Provider.php
+++ b/apps/comments/lib/Activity/Provider.php
@@ -204,7 +204,7 @@ class Provider implements IProvider {
try {
$comment = $this->commentsManager->get((string) $commentId);
$message = $comment->getMessage();
- $message = str_replace("\n", '<br />', str_replace(['<', '>'], ['&lt;', '&gt;'], $message));
+ $message = str_replace(['<', '>', "\n"], ['&lt;', '&gt;', '<br />'], $message);
$mentionCount = 1;
$mentions = [];