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-sidebar doesn't work on the repo’s "Code" tab #6307
I'm not really sure when it broke, but it looks like the sticky-sidebar feature doesn't work anymore, although the class "rgh-sticky-sidebar" is correctly added to the div...
There are no console errors
You can see at the beginning of the video that the sidebar does have the rgh-sticky-sidebar class, but when I scroll it isn't sticky. This video was made in Firefox.
The feature depends on the viewport height. If the sidebar doesn't fit completely into the viewport (and the mouse isn't hovering it), it will not stick.
On that page, try zooming out the page to 50% and it should stick.
Yes I'm aware, but it still does not work. That's why I was insisting that there was the class rgh-sticky-sidebar, because it's only added when the sidebar fits; so it means that the extension detected that it fits the viewport.
Activity
fregante commentedon Feb 7, 2023
The feature depends on the viewport height. If the sidebar doesn't fit completely into the viewport (and the mouse isn't hovering it), it will not stick.
On that page, try zooming out the page to 50% and it should stick.
noftaly commentedon Feb 7, 2023
Yes I'm aware, but it still does not work. That's why I was insisting that there was the class
rgh-sticky-sidebar, because it's only added when the sidebar fits; so it means that the extension detected that it fits the viewport.I zoomed out to 50% and here is the result:
Untitled.mov
[-]`sticky-sidebar` doesn't seem to work anymore[/-][+]`sticky-sidebar` doesn't work on the repo’s "Code" tab[/+]amanmalh commentedon Feb 9, 2023
Hi @fregante, I'd like to work on this issue. I think I have a fix. Thanks.
fregante commentedon Feb 9, 2023
You can send PRs unannounced.
Fix `sticky-sidebar` on repo's "Code" tab (refined-github#6307)
Fix `sticky-sidebar` on repo's "Code" tab (refined-github#6307)
Fix `sticky-sidebar` on repo's "Code" tab (refined-github#6307)"
Fix `sticky-sidebar` on repo's "Code" tab (refined-github#6307)