Skip to content

Transform repository navigation to a simple overflow-y: scroll #4286

Closed

Description

@fregante

Instead of items disappearing in more-dropdown, I'd rather be able to scroll the nav bar horizontally natively:

gif

I'd do away with the dropdown completely, extracting all the items back out instead of hiding them like more-dropdown does.

Unfortunately I don’t think this change would be welcome for users who don't have a horizontal scrolling mousewheel/trackpad, and I know Sindre doesn't like showing all the items on the bar, so this issue is just for tracking/discussion.

Activity

  1. fregante commented on Apr 28, 2021

    @fregante
    MemberAuthor

    This can currently be achieved by disabling more-dropdown + this CSS:

    .js-responsive-underlinenav {
    	padding-right: 0 !important;
    }
    .js-responsive-underlinenav-item {
    	visibility: visible !important;
    }
    .UnderlineNav-actions  {
    	display: none;
    }
    .UnderlineNav-body {
    	overflow-y: scroll;
    }
    .UnderlineNav-body::-webkit-scrollbar {
    	height: 0;
    	width: 0;
    }
  2. sindresorhus commented on Apr 28, 2021

    @sindresorhus
    Member

    I'm -0 about this. I don't like it, but I also don't feel strongly about it.

  3. kidonng commented on Apr 29, 2021

    @kidonng
    Member

    If I remember correctly, that's how GitHub used to do on mobile web page. It feels natural on mobile devices to swipe around.

    Now that they choose to use a dropdown, I think we should stick to it.

  4. fregante commented on May 3, 2021

    @fregante
    MemberAuthor

    While I'm at it, here's a related "refinement" that won't be part of Refined GiHub 😃

    Screen Shot 1

    .UnderlineNav-octicon {
    	margin-right: 0 !important;
    }
    .UnderlineNav-item [data-content] {
    	display: none;
    }
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