You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sticky header for issue / PR / discussion comments #8463
For long comments on issues, PRs and discussions, I was wondering if there would be any appetite for Refined GitHub to have a sticky header for quick access to common features without scrolling up to the top of the comment (editing the comment, linking to the comment, navigating to the commenter's GitHub profile, anything else in the three dots menu).
It would mean that there would be 2 sticky headers, although the comment header is not very tall.
I would find this personally useful when making many updates to long comments, where I want to visually see the bottom of the comment, but quickly be able to edit the comment.
I'd accept a small PR for this, separate CSS-only feature. However it needs to handle:
that bar
mobile view (should be the same)
notification bar
automatically adjust when the notification bar is closed
We have some other feature that handles the notification header height, I think sticky-sidebar, so you should be able to piggy-back on its logic or copy-paste its selector.
However it should still only be CSS only and avoid broad :has() usage (e.g. body:has())
Ahh too bad :( Well let's hope for that future then.
Current CSS Solution
I'll try out the Refined GitHub "Custom CSS" feature with my modified version of CSS below (changes: set background to gray to avoid transparency, z-index fixes for videos, fix weird Biome CSS formatting) from @SunsetTechuila's PR #8544 :
Since I pasted this like 5 minutes ago, it's already delivering value! Already interacted intuitively with the sticky headers like 3 times.
I'll report back to this issue with any problems I encounter over time, including any fixes I make to the CSS. Maybe if we see a longer period of stability (or a change which makes the approach nicer), we can reconsider making this a feature again.
If you mean the feature of the menu scrolling with the header once it's open, I can confirm that's the case (see the space in between the menu items and the three dots):
3 months of planning and no PR in sight. As far as I'm concerned, the feature is not coming. No point in tracking an impossible and already-attempted feature. Half of Refined GitHub's feature are broken or about to be broken, so I'm not in a rush to add complex features and spend hours reviewing PRs for new features.
Hmm I understand your hesitation, but the 3 months of planning is not accurate, I think. Most of the work was done by @SunsetTechuila within approximately 15 days in July (including back and forth with PR review). The rest of the time since then has been spent on trying it out live on GitHub, where it has not been problematic over this period of time.
The base CSS for this feature is not overly complex, but it would be good to get it right without incompatibilities - which is in my understanding one reason @SunsetTechuila is delaying.
But I get what you mean that you would like to first see a PR - I'm assuming you mean it would be better to wait for @SunsetTechuila to be available / ready again before reopening this issue.
Activity
fregante commentedon Jun 16, 2025
I'd accept a small PR for this, separate CSS-only feature. However it needs to handle:
We have some other feature that handles the notification header height, I think
sticky-sidebar, so you should be able to piggy-back on its logic or copy-paste its selector.However it should still only be CSS only and avoid broad
:has()usage (e.g.body:has())[-]Sticky header for issue / PR / discussion comments?[/-][+]Sticky header for issue / PR / discussion comments[/+]Vangelis66 commentedon Jul 12, 2025
fregante commentedon Jul 20, 2025
@karlhorky maybe in a future where we only have one React view to support and they have acceptable classes, this can be implemented.
Judging by the verbose selectors in the attempted PR, this feature would be broken in about 9 days and create performance issues in 17 days.
fregante commentedon Jul 20, 2025
Those interested can attempt to copy-paste it @SunsetTechuila's CSS and ride it while it works.
karlhorky commentedon Jul 20, 2025
Ahh too bad :( Well let's hope for that future then.
Current CSS Solution
I'll try out the Refined GitHub "Custom CSS" feature with my modified version of CSS below (changes: set background to gray to avoid transparency, z-index fixes for videos, fix weird Biome CSS formatting) from @SunsetTechuila's PR #8544 :
Also added to my GitHub Tricks repo here: https://github.com/karlhorky/github-tricks#refined-github-sticky-comment-headers
Since I pasted this like 5 minutes ago, it's already delivering value! Already interacted intuitively with the sticky headers like 3 times.
I'll report back to this issue with any problems I encounter over time, including any fixes I make to the CSS. Maybe if we see a longer period of stability (or a change which makes the approach nicer), we can reconsider making this a feature again.
fregante commentedon Jul 20, 2025
rgh-OFF-sticky-comment-headerdoesn't exist so you might want to remove that. Thanks for sharing!karlhorky commentedon Jul 21, 2025
Stability updates for the CSS solution
Testing Methodology for the CSS solution
node_modules/*/*.tsnodejs/typescript#14 and check for any visual bugs15 remaining items
SunsetTechuila commentedon Sep 16, 2025
And it is broken since the menu element is no longer a child of
[app-name="issues-react"]karlhorky commentedon Sep 17, 2025
@SunsetTechuila would you be open to creating a new PR for this? I think you should get the credit for this.
karlhorky commentedon Sep 29, 2025
@SunsetTechuila do you think that you would have time to open this PR?
SunsetTechuila commentedon Sep 29, 2025
yes
SunsetTechuila commentedon Oct 7, 2025
github is actively changing stuff, so I won't rush it
SunsetTechuila commentedon Oct 13, 2025
This part has to go. I don't see any css-only way to detect the issue page without using
body:haskarlhorky commentedon Oct 13, 2025
@SunsetTechuila what do you mean? which feature is broken?
If you mean the feature of the menu scrolling with the header once it's open, I can confirm that's the case (see the space in between the menu items and the three dots):
But at least, it opens in the right place:
SunsetTechuila commentedon Oct 13, 2025
Yes
karlhorky commentedon Oct 26, 2025
@fregante since this feature is planned to be implemented, could this issue be reopened again?
fregante commentedon Oct 26, 2025
3 months of planning and no PR in sight. As far as I'm concerned, the feature is not coming. No point in tracking an impossible and already-attempted feature. Half of Refined GitHub's feature are broken or about to be broken, so I'm not in a rush to add complex features and spend hours reviewing PRs for new features.
karlhorky commentedon Oct 26, 2025
Hmm I understand your hesitation, but the 3 months of planning is not accurate, I think. Most of the work was done by @SunsetTechuila within approximately 15 days in July (including back and forth with PR review). The rest of the time since then has been spent on trying it out live on GitHub, where it has not been problematic over this period of time.
The base CSS for this feature is not overly complex, but it would be good to get it right without incompatibilities - which is in my understanding one reason @SunsetTechuila is delaying.
But I get what you mean that you would like to first see a PR - I'm assuming you mean it would be better to wait for @SunsetTechuila to be available / ready again before reopening this issue.
SunsetTechuila commentedon Oct 27, 2025
I'll open a PR today
karlhorky commentedon Aug 31, 2026
This feature was eventually dropped, because of compatibility problems:
sticky-comment-header- Drop feature #10005The latest versions of the CSS and discussion (and any future supported extension or user styles) will happen over there.