Commit e3a1b825 authored by Mike Greiling's avatar Mike Greiling

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
parents 6d2a48d5 00525de0
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
.diff-line-num { .diff-line-num {
width: 50px; width: 50px;
position: relative;
a { a {
transition: none; transition: none;
......
...@@ -632,20 +632,18 @@ ul.notes { ...@@ -632,20 +632,18 @@ ul.notes {
.line_holder .is-over:not(.no-comment-btn) { .line_holder .is-over:not(.no-comment-btn) {
.add-diff-note { .add-diff-note {
opacity: 1; opacity: 1;
z-index: 101;
} }
} }
.add-diff-note { .add-diff-note {
@include btn-comment-icon; @include btn-comment-icon;
opacity: 0; opacity: 0;
margin-top: -2px;
margin-left: -55px; margin-left: -55px;
position: absolute; position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10; z-index: 10;
.new & {
margin-top: -10px;
}
} }
.discussion-body, .discussion-body,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment