From 933b805044bf10d08c8be3435f5129c4b3d38cae Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Wed, 21 Nov 2018 11:46:54 -0500 Subject: [PATCH 1/2] Make comment actions (report, delete, restore) only visible on hover --- src/views/preview/comment/comment.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/preview/comment/comment.scss b/src/views/preview/comment/comment.scss index 53644e822..24fd039d2 100644 --- a/src/views/preview/comment/comment.scss +++ b/src/views/preview/comment/comment.scss @@ -289,3 +289,7 @@ margin-right: -50%; } } + +/* Hide the action list buttons (delete/report/restore) until hover over */ +.comment .action-list { opacity: 0; } +.comment:hover .action-list { opacity: 1; } From a8cf28958c62b502c0d49739aa42ccb6a5980df2 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Wed, 21 Nov 2018 11:47:12 -0500 Subject: [PATCH 2/2] Fix incorrect translation string in comment report --- src/views/preview/comment/comment.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/preview/comment/comment.jsx b/src/views/preview/comment/comment.jsx index 695dd13aa..4b498ac72 100644 --- a/src/views/preview/comment/comment.jsx +++ b/src/views/preview/comment/comment.jsx @@ -158,7 +158,7 @@ class Comment extends React.Component { className="comment-report" onClick={this.handleReport} > - + )}