Skip to content

sticky-sidebar doesn't work on the repo’s "Code" tab #6307

Closed

Description

@noftaly

Description

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.

Untitled.mov

How to replicate the issue + URL

Extension version

23.2.5

Browser(s) used

Firefox & Safari

Activity

  1. fregante commented on Feb 7, 2023

    @fregante
    Member

    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.

  2. noftaly commented on Feb 7, 2023

    @noftaly
    Author

    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
  3. changed the title [-]`sticky-sidebar` doesn't seem to work anymore[/-] [+]`sticky-sidebar` doesn't work on the repo’s "Code" tab[/+] on Feb 8, 2023
  4. amanmalh commented on Feb 9, 2023

    @amanmalh
    Contributor

    Hi @fregante, I'd like to work on this issue. I think I have a fix. Thanks.

  5. fregante commented on Feb 9, 2023

    @fregante
    Member

    You can send PRs unannounced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions