1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

Fix 'add code comment' button being invisible all the time (#13389) (#13402)

* 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>

(cherry picked from commit 7f7e7f3ca4)
This commit is contained in:
Cirno the Strongest
2020-11-03 00:09:29 +01:00
committed by GitHub
parent 350c10fe5b
commit cbdbae2925
2 changed files with 5 additions and 16 deletions

View File

@@ -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;
}
.add-comment-left.add-comment-right .ui.attached.header {
border: 1px solid #d4d4d5;
margin-top: .5em;
@@ -32,11 +36,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;
position: relative;