summaryrefslogtreecommitdiffstats
path: root/web_src/less
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-11-02 16:58:14 +0100
committerGitHub <noreply@github.com>2020-11-02 10:58:14 -0500
commit7f7e7f3ca432fa80f9f5a8a71c9c10a89ac43c4f (patch)
tree225c7cd34f4c4984571ffc33d3588207e0055220 /web_src/less
parent06268dcf53657ffe012abe878e1127ab4f954264 (diff)
downloadgitea-7f7e7f3ca432fa80f9f5a8a71c9c10a89ac43c4f.tar.gz
gitea-7f7e7f3ca432fa80f9f5a8a71c9c10a89ac43c4f.zip
Fix 'add code comment' button being invisible all the time (#13389)
* Fix 'add code comment' button being invisible all the time * Fix off-center icon * Remove old JS hover hack * Show on full-line hover Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src/less')
-rw-r--r--web_src/less/_review.less11
1 files changed, 5 insertions, 6 deletions
diff --git a/web_src/less/_review.less b/web_src/less/_review.less
index 26036abaf5..1163b831ce 100644
--- a/web_src/less/_review.less
+++ b/web_src/less/_review.less
@@ -1,7 +1,7 @@
.ui.button.add-code-comment {
font-size: 14px;
height: 16px;
- line-height: 16px !important;
+ line-height: 12px !important;
padding: 0;
position: relative;
width: 16px;
@@ -17,6 +17,10 @@
}
}
+.diff-file-box .lines-code:hover .ui.button.add-code-comment {
+ opacity: 1;
+}
+
.repository .diff-file-box .code-diff .add-comment-left,
.repository .diff-file-box .code-diff .add-comment-right,
.repository .diff-file-box .code-diff .add-code-comment .add-comment-left,
@@ -40,11 +44,6 @@
}
}
-.focus-lines-new .ui.button.add-code-comment.add-code-comment-right,
-.focus-lines-old .ui.button.add-code-comment.add-code-comment-left {
- opacity: 1;
-}
-
.comment-code-cloud {
padding: 4px;
padding-left: 0;