Skip to content

Double-scroll areas after expanding all lines #5468

Closed

Description

@samholmes

Please ensure:

  • The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.
  • The bug happens after clearing extension cache. The "Clear cache" button below can also be found at the bottom of the options page.

Example URLs

1bb5e36#diff-84b7041bfeae43fea26aac38d2eb71d1c2ce5d7bdb2cd6a9a7b3502662a26da8

Extension version

22.3.3

Browser(s) used

Brave – Version 1.35.100 Chromium: 98.0.4758.87 (Official Build) (arm64)

Description

  1. View 1bb5e36 (#5422)

  2. Expand file source/features/collapsible-content-button.tsx

  3. Scroll up and down

Expected: Only one scroll area for the webpage's document's body or window is present

Actual: There is another scroll area present for the file container element with a little amount of scroll leeway.

Screen Recording:

output.mp4

Include in this issue:

  • Screenshots/video/gif demonstrating the bug, if it’s visual
  • Console errors, if any

Activity

  1. fregante commented on Mar 7, 2022

    @fregante
    Member

    This is not a Refined GitHub bug, I can replicate it without RG

  2. samholmes commented on Mar 7, 2022

    @samholmes
    Author

    This is not a Refined GitHub bug, I can replicate it without RG

    I didn't know GH has the expand all lines feature now. I've been using RG mainly for this feature.

  3. cheap-glitch commented on Mar 8, 2022

    @cheap-glitch
    Contributor

    Maybe the fix for this is as simple as:

    .js-blob-wrapper {
    	overflow-y: hidden !important;
    }

    I didn't know GH has the expand all lines feature now.

    I didn't know either 😅
    It was dropped from RGH in https://togithub.com/refined-github/refined-github/pull/4150

  4. fregante commented on Mar 9, 2022

    @fregante
    Member
    overflow-y: hidden

    vade retro satana

    As the name suggests, that just hides the issue.

    I found the cause by deleting one element at a time in the table:

    Screen Shot 6

    This is the line number and that top: 1px pushes it 1px outside the table, which lengthens the scrollable content. A fix could probably just add margin-bottom: -1px to it but I don't remember if that actually reduces the scrollable height.

  5. cheap-glitch commented on Mar 9, 2022

    @cheap-glitch
    Contributor

    How about a simple top: 0 !important? Tried it in my custom CSS and it doesn't seem to break anything.

  6. fregante commented on Mar 9, 2022

    @fregante
    Member

    I haven't checked but I assume that that would change (break) the number text alignment

  7. cheap-glitch commented on Mar 9, 2022

    @cheap-glitch
    Contributor

    I haven't checked but I assume that that would change (break) the number text alignment

    Actually, those are not the line numbers but the +/- diff signs, which are hidden by RGH anyway.

  8. added
    small
    and removed on Mar 10, 2022
  9. fregante commented on Mar 10, 2022

    @fregante
    Member

    Sounds like our GitHub bugs CSS file will receive a +6 diff then 😌

  10. added
    Please! ♥︎
    on Mar 15, 2022
  11. fregante commented on Mar 15, 2022

    @fregante
    Member

    This bug is really annoying

  12. self-assigned this
    on Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Please! ♥︎acceptedenhancementgithub bugsmall

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions