From 4539a7b0b4fc6539d67ab386eaac4b9aea82bf53 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 20 Oct 2023 16:56:19 +0200 Subject: [PATCH] Fix sticky diff header background (#27697) Fixes: https://github.com/go-gitea/gitea/issues/27604 Add negative margins so the header covers any shadow of active elements. No rendering change of the content of the header because the padding counteracts the effect. image --- web_src/css/repo.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 2ef35ecfdc..ae7f6bb379 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -1497,7 +1497,8 @@ position: sticky; top: 0; z-index: 8; - padding: 7px 0; + padding: 7px 5px; + margin: 0 -5px; /* negative margin so it covers active file shadow */ height: 44px; /* this height should match sticky-2nd-row */ background: var(--color-body); }