From 5beb29ad35bcf070641b20b2c31013ecda1e2763 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Fri, 24 Feb 2023 16:47:48 +0200 Subject: [PATCH] Fix height for sticky head on large screen on PR page (#23111) (#23123) 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 --- web_src/less/_repository.less | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 83e8e1f338e..4862e30962a 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -3269,17 +3269,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; }