From 8adc6a188ea3bfc787103e7484f8d0d567fe5538 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Fri, 24 Feb 2023 18:35:59 +0200 Subject: [PATCH] Fix height for sticky head on large screen on PR page (#23111) (#23124) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 截屏2023-02-24 17 12 29 After: 截屏2023-02-24 21 10 12 --------- Co-authored-by: HesterG Co-authored-by: Andrew Thornton --- web_src/less/_repository.less | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 954577c878..09b8002a89 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -3218,17 +3218,9 @@ td.blob-excerpt { .ui.attached.header.diff-file-header { &.sticky-2nd-row { position: sticky; - top: 46px; + top: 77px; z-index: 7; - @media @mediaMd { - top: 77px; - } - - @media @mediaSm { - top: 77px; - } - @media (max-width: 480px) { position: static; }