Scroll collapsed file into view (#23702)
This commit is contained in:
parent
0983b237d5
commit
54197b67f9
3 changed files with 12 additions and 2 deletions
|
@ -1867,6 +1867,13 @@
|
|||
.diff-file-box {
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--border-radius);
|
||||
scroll-margin-top: 47px; /* match .repository .diff-detail-box */
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.diff-file-box {
|
||||
scroll-margin-top: 77px; /* match .repository .diff-detail-box */
|
||||
}
|
||||
}
|
||||
|
||||
/* TODO: this can potentially be made "global" by removing the class prefix */
|
||||
|
|
|
@ -246,12 +246,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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue