Skip to content

Commit a08b6c1

Browse files
committed
Add scroll-margin-top
1 parent 2ea84fa commit a08b6c1

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

web_src/css/repository.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,16 @@
18531853
padding-bottom: 5px;
18541854
}
18551855

1856+
.repository .diff-file-box {
1857+
scroll-margin-top: 47px; /* match .repository .diff-detail-box */
1858+
}
1859+
1860+
@media (max-width: 991px) {
1861+
.repository .diff-file-box {
1862+
scroll-margin-top: 77px; /* match .repository .diff-detail-box */
1863+
}
1864+
}
1865+
18561866
.repository .diff-stats {
18571867
clear: both;
18581868
margin-bottom: 5px;

web_src/css/review.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,12 @@ a.blob-excerpt:hover {
266266
display: none;
267267
}
268268

269-
.pull.files.diff [id] {
269+
.pull.files.diff .comment {
270270
scroll-margin-top: 99px;
271271
}
272272

273273
@media (max-width: 991px) {
274-
.pull.files.diff [id] {
274+
.pull.files.diff .comment {
275275
scroll-margin-top: 130px;
276276
}
277277
}

0 commit comments

Comments
 (0)