From 03311238e86f57d35a9452bd4ef31e6130f0b82f Mon Sep 17 00:00:00 2001 From: data Date: Sun, 14 Jul 2019 15:03:12 +0200 Subject: [PATCH] don't rerender on hover for collapse/expand link --- public/custom.css | 12 ++++++++++++ .../Comments/SingleComment/ExpandedComment.js | 10 ++-------- src/Components/Comments/index.js | 12 ------------ 3 files changed, 14 insertions(+), 20 deletions(-) diff --git a/public/custom.css b/public/custom.css index 31e6086..91cb348 100644 --- a/public/custom.css +++ b/public/custom.css @@ -1,3 +1,15 @@ .replies { margin-left: 1em; } +a:hover { + text-decoration: none; + color: #007bff; +} +.comment-meta a { + display: none; +} +.comment-meta:hover a { + display: inline; + text-decoration: none; + color: #007bff; +} diff --git a/src/Components/Comments/SingleComment/ExpandedComment.js b/src/Components/Comments/SingleComment/ExpandedComment.js index f9b3000..2e70758 100644 --- a/src/Components/Comments/SingleComment/ExpandedComment.js +++ b/src/Components/Comments/SingleComment/ExpandedComment.js @@ -3,18 +3,13 @@ import CommentReply from './CommentReply' const ExpandedComment = props => { return ( -
  • props.showCollapseLink(props.id, true)} - onMouseLeave={() => props.showCollapseLink(props.id, false)} - > +