1
0
Fork 0
forked from forgejo/forgejo

Scroll collapsed file into view (#23702)

This commit is contained in:
Jimmy Praet 2023-04-05 01:51:42 +02:00 committed by GitHub
parent 0983b237d5
commit 54197b67f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View file

@ -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 */