Skip to content
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

Overflow scrollbar on some browsers is unappealing #3086

Open
jess-lowe opened this issue Jan 23, 2025 · 2 comments
Open

Overflow scrollbar on some browsers is unappealing #3086

jess-lowe opened this issue Jan 23, 2025 · 2 comments
Assignees
Labels
frontend Frontend Infrastructure good first issue Good for newcomers ui UI bugs/FRs

Comments

@jess-lowe
Copy link
Contributor

Image

@jess-lowe jess-lowe added frontend Frontend Infrastructure good first issue Good for newcomers ui UI bugs/FRs labels Jan 23, 2025
@Kunal9027
Copy link

Kunal9027 commented Feb 6, 2025

I have already setup the project locally and GitHub page .i want to work on this issue can you please give more information about the issue . like

  • which browsers have this issue.
  • does it have issue with every scrollbar on website or a specific part of the website . Because when i check scrollbar in my GitHub pages they are looking good to me.

Solution that i think will work :-

  • Hiding the Scrollbar While Preserving Scrollability

      .ecosystem-counts {
        overflow-x: auto;
        /* Hide scrollbar for Firefox */
        scrollbar-width: none; 
        -ms-overflow-style: none; /* Internet Explorer 10+ */
      }
      
      .ecosystem-counts::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
      } 
    

This keeps the horizontal scroll functionality but hides the visible scrollbar.

I don't want to send unnecessary PR before completely fixing the problem

Thank you

Kunal9027 added a commit to Kunal9027/osv.dev that referenced this issue Feb 7, 2025
@jess-lowe
Copy link
Contributor Author

Hey @Kunal9027, thanks for picking this up!

From what I can tell, on top of being browser specific, can also be OS specific. For example, on ChromeOS, scrollbars are automatically hidden, and have no background, where on other OS's like Windows and Linux, they're visible by default and have a background.

For this specific case, given the inconsistencies across OS's, I'd be happy if the overflow vertically was removed/hidden, and the background/thumb colour of the horizontal scroll bar was something that would fit better with the website's theme. I believe that can be done with the scrollbar-color property. It might also be nice to give that bottom area between the ecosystems list and the scroll bar a little bit of extra padding.

This issue primarily affects the front page, but I'll keep an eye out for anywhere else.

Thanks for offering to help! Let me know if you have any more questions, or if there is anything that needs better clarification. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Frontend Infrastructure good first issue Good for newcomers ui UI bugs/FRs
Projects
None yet
Development

No branches or pull requests

2 participants