Skip to content

Commit

Permalink
Add scroll-margin-top
Browse files Browse the repository at this point in the history
  • Loading branch information
jpraet committed Mar 25, 2023
1 parent 2ea84fa commit a08b6c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions web_src/css/repository.css
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,16 @@
padding-bottom: 5px;
}

.repository .diff-file-box {
scroll-margin-top: 47px; /* match .repository .diff-detail-box */
}

@media (max-width: 991px) {
.repository .diff-file-box {
scroll-margin-top: 77px; /* match .repository .diff-detail-box */
}
}

.repository .diff-stats {
clear: both;
margin-bottom: 5px;
Expand Down
4 changes: 2 additions & 2 deletions web_src/css/review.css
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,12 @@ a.blob-excerpt:hover {
display: none;
}

.pull.files.diff [id] {
.pull.files.diff .comment {
scroll-margin-top: 99px;
}

@media (max-width: 991px) {
.pull.files.diff [id] {
.pull.files.diff .comment {
scroll-margin-top: 130px;
}
}
Expand Down

0 comments on commit a08b6c1

Please sign in to comment.