-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix position of sticky file headers after opening notification #5930
Conversation
.notification-shelf ~ .application-main .file-header:not(.sticky-file-header) { | ||
top: 129px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently GitHub uses JS to compute and inject the correct value for top
in each of the file header elements' style
attribute 😬
This rule was superseded by those inline styles but still messed with their computations, resulting in a value of 198px
instead of the correct 129px
.
Thank god |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I broke this probably a month ago 🥲
Would you be able to push a hotfix for 22.8.1 and 22.8.23? I think it looks like:
.notification-shelf ~ .application-main .file-header.sticky-file-header {
top: 198px;
}
No, a bigger value for Just tested the rule but with |
Hmm, weird I pushed some hotfixes but even after clearing the cache they don't get downloaded 🤔 @fregante Are you seeing them? Should be present for the last three versions |
Are you using the dev version? They're not applied to 0.0.0 |
I know, which is why I tried in my regular browser profile but no luck. And I know the CSS is valid because adding it to my custom CSS fixes things 🤷♂️
Edit: Wait, did the hotfixes move to the new Edit n°2: Added the hotfix to |
Yes, we'll drop the hotfixed branch soon.
I see it on Safari 22.8.1: Run anywhere to find out if the cache was downloaded (keep in mind that you need to open GitHub.com after clearing your cache) chrome.storage.local.get(console.log) |
The only related bug I'm experiencing is #5857, because the its bug fix was in 22.8.8 but Safari is on 22.8.1 🥲 |
Fixes #5914
Test URLs
Screenshot
Before
After