From dfe7af93e81959c2dbdbacb55dc6fac834f0114d Mon Sep 17 00:00:00 2001 From: shaokeyibb Date: Wed, 11 Sep 2024 22:16:31 +0800 Subject: [PATCH 1/2] refactor: show actions when hover whole comment --- frontend/lib/style.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/lib/style.css b/frontend/lib/style.css index 1452b492..fc32078b 100644 --- a/frontend/lib/style.css +++ b/frontend/lib/style.css @@ -276,6 +276,10 @@ & .comment { position: relative; + + &:hover .comment_header .comment_actions { + display: flex; + } } & .comment_container { @@ -359,10 +363,6 @@ & .comment_actions { display: none; } - - &:hover .comment_actions { - display: flex; - } } & .comment.comment_pending { From 45cf8274406bc81071eb27e1994516375eefaf82 Mon Sep 17 00:00:00 2001 From: shaokeyibb Date: Wed, 11 Sep 2024 22:17:04 +0800 Subject: [PATCH 2/2] refactor: make user avatar unselectable --- frontend/lib/style.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/lib/style.css b/frontend/lib/style.css index fc32078b..4670bf8a 100644 --- a/frontend/lib/style.css +++ b/frontend/lib/style.css @@ -322,6 +322,8 @@ & .comment_user_avatar { margin-top: 4px; + user-select: none; + & img, & svg { width: 100%;