Merge branch 'fix-diff-comment-alignment' into 'master'

Fix diff comment alignment for parallel code additions

Closes #47861

See merge request gitlab-org/gitlab-ce!20006
This commit is contained in:
Mike Greiling 2018-06-21 18:18:36 +00:00
commit e3a1b825f4
2 changed files with 4 additions and 5 deletions

View File

@ -65,6 +65,7 @@
.diff-line-num {
width: 50px;
position: relative;
a {
transition: none;

View File

@ -632,20 +632,18 @@ ul.notes {
.line_holder .is-over:not(.no-comment-btn) {
.add-diff-note {
opacity: 1;
z-index: 101;
}
}
.add-diff-note {
@include btn-comment-icon;
opacity: 0;
margin-top: -2px;
margin-left: -55px;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10;
.new & {
margin-top: -10px;
}
}
.discussion-body,