-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
sticky-comment-header - New feature
#8726
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
Conversation
588bcc5 to
c62e7cc
Compare
c62e7cc to
54f7085
Compare
6868429 to
dec7028
Compare
|
No need to force push here, it makes it difficult to see what changed between reviews of the code |
|
I've accidentally committed lockfile changes, sorry |
|
When one of my own comments has been hidden, either by me or the tracker's owner, the bluish stickied-header becomes transparent when I click the
The above is with latest artifact installed in Firefox (Nightly 144.0a1) ... I don't believe myself this should fall under
😉 ; kind regards. |
this triggers a re-render, undoing any changes to the class list |
This doesn't appear to be a problem with the current Custom CSS version from my comment:
|
Because it doesn't rely on classes added by RGH And you have to check your own comment. Also, I've already fixed that in 94a092d |
... I can confirm this is now fixed 👍 🎉 when installing artifact: https://github.com/refined-github/refined-github/actions/runs/19009740536/artifacts/4441037790
Thanks for your swift action ❤️ ... |
|
Well, I had brought this up when PR #8544 was still open, but I think now is the time for a decision to be made... At this very moment, judging by its "browser_specific_settings": {
"gecko": {
"id": "{a4c4eda4-fb84-4a84-b4a1-f7c1cbf2a1ad}",
"strict_min_version": "128.0"
},RGH still supports Mozilla Firefox 128.x.x, which includes the FxESR-128 branch... PR own comment, e.g. #8726 (comment)
Issue own comment, e.g. #8463 (comment)
In both images, the "own" comment header has a solid black background, which becomes transparent when the header is being stickied 😞 ... Mozilla have EoL'ed the 128esr branch with @SunsetTechuila can find and document the absolutely minimum version of Firefox that fully supports his #8726 code, and set that as the new minimum supported version inside the extension's If, for whatever other reason, the extension devs want to sustain 128esr support, then, perhaps, the extension could dynamically check the platform (browser engine) for specific CSS feature(s) support and if not found a) disable the Personally, for 128esr I still use the CSS code in @karlhorky 's comment ; "own" comment header background is dark grey (not bluish) and stays opaque when stickied:
PS: This comment was written in FxESR-128.14.0 (32-bit) 😜 ; GitHub is still functioning here 😄 ... |
|
Thanks for testing! Yeah we can definitely bump the minimum version in this PR to v140 for Firefox only |
|
Support for single-color stop in @Vangelis66 try now |
Well, back to fx-128.14.0esr, where I have just installed artifact sticky-comment-header - New feature #14809 Test results 😉 : PR own comment, e.g. #8726 (comment)
Issue own comment, e.g. #8463 (comment)
Issue unhidden own comment, e.g. yt-dlp/yt-dlp#14847 (comment)
So, all cases above appear as expected 🥇 🎉 ; many thanks indeed for your attention and prompt fixes to this specific "older" Fx support issue 😉 ... @fregante, no need then to up the minimum supported Fx version in RGH itself, at least with regards to this specific "New feature" 😄 PR ... Thanks for SunsetTechuila's coding efforts ❤️ , thanks overall for this indispensable extension for anyone using GH! Best regards. (Again, this comment was written using fx-128.14.0esr; there's a quite small "lag" in the editor, probably because GitHub are polyfilling (some of the) missing features - but it all works as it should!) |
|
This feels awfully familiar. @yakov116 did we have this feature before? |
|
#3577 we had this for the issue, I don't think we ever had it for the comment |
|
don't merge this rn please |
|
safe to merge |
|
Is there anything I can do to help get this merged? |
|
When the PR is ready for review, it should be marked as ready for review. I'll check it this week and release a new version |
|
Let's give this a go 🚀 |
| "id": "sticky-comment-header", | ||
| "description": "Makes the comment header sticky when scrolling through long comments. Requires <code>show-names</code> to be enabled.", | ||
| "css": true, | ||
| "screenshot": "https://github.com/user-attachments/assets/0d6deca0-0f49-4aa3-ab23-0cfbde4fa4e8" |
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.
Can you replace the screenshot with a gif? Refer to sticky-sidebar, but it can be smaller than that / more focused.
Use Licecap because it produces very lightweight images
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.
Sorry, I find the task of creating a good gif surprisingly hard. If I record a gif, I can’t trim unwanted parts without ruining quality or exploding the file size. If I record a video, I can’t convert it to a gif with a reasonable size and quality. Could be a skill issue 🤷♂️
|
@SunsetTechuila it looks like there's a visual bug with issue comments by the viewing user (your own issue comments) which are not the issue description comment at the top - the background is transparent and allows the content to make the header text unreadable:
This does not affect an issue description from the viewing user - the background is not transparent there:
All PR comments by the viewing user are also unaffected by this bug:
Should be visible for you in the issue, eg: |
|
Do you have |
|
No, I disable I remember reading somewhere that Would it be possible to use the CSS cascade to gracefully degrade in the case that
|
|
@fregante @SunsetTechuila I see that #8809 was merged, but the fallback fixing the transparent header problem was reverted? Does that mean that the problem still exists? Or am I misunderstanding the code in #8809? |












Less attention to detail, but also less code to maintain
resolves #8463
previous PR #8544
CC @karlhorky @Vangelis66
Test URLs
refined-github/sandbox#117
refined-github/sandbox#118
https://gist.github.com/anthonyeden/0088b07de8951403a643a8485af2709b
Screenshot