Skip to content

Commit 5beb29a

Browse files
Fix height for sticky head on large screen on PR page (#23111) (#23123)
Backport #23111 Right now on the PR 'File Change' Tab, the file title header sticky to the top on large screens has wrong height, resulting in wrong ui behavior when scrolling down. This PR is to fix this. Before: <img width="964" alt="截屏2023-02-24 17 12 29" src="https://user-images.githubusercontent.com/17645053/221140409-025c4a84-6bbe-4b5b-a13f-bd2b79063522.png"> After: <img width="1430" alt="截屏2023-02-24 21 10 12" src="https://user-images.githubusercontent.com/17645053/221186750-0344d652-4610-4a90-a4c0-7f6269f950d6.png"> Co-authored-by: HesterG <[email protected]>
1 parent 27e3071 commit 5beb29a

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

web_src/less/_repository.less

+2-10
Original file line numberDiff line numberDiff line change
@@ -3269,17 +3269,9 @@ td.blob-excerpt {
32693269
.ui.attached.header.diff-file-header {
32703270
&.sticky-2nd-row {
32713271
position: sticky;
3272-
top: 46px;
3272+
top: 77px;
32733273
z-index: 7;
3274-
3275-
@media @mediaMd {
3276-
top: 77px;
3277-
}
3278-
3279-
@media @mediaSm {
3280-
top: 77px;
3281-
}
3282-
3274+
32833275
@media (max-width: 480px) {
32843276
position: static;
32853277
}

0 commit comments

Comments
 (0)