Skip to content

Fix repo title wrapping on small screens #5398

Closed

Description

@fregante

Description

No words honestly. We reject features and drop content from the header to avoid this stuff and they keep adding buttons. Let's limit the buttons to 50% of the screen and then have them wrap

Screenshot

Screen Shot 10

Example URL

https://github.com/refined-github/refined-github

Activity

  1. added
    small
    on Feb 11, 2022
  2. cheap-glitch commented on Feb 11, 2022

    @cheap-glitch
  3. kidonng commented on Feb 12, 2022

    @kidonng
    Member

    Hipster mode:

    .pagehead-actions :is(
        details:not(.js-user-list-menu) summary,
        form > .btn
    ):not(:hover) {
        font-size: 0px;
        display: flex;
        align-items: center;
    }
    
    .pagehead-actions :is(
        details:not(.js-user-list-menu) summary,
        form > .btn
    ):not(:hover) svg {
        margin-right: 0 !important;
    }
    
    notifications-list-subscription-form summary:not(:hover) {
        line-height: 0 !important;
        height: 28px;
    }
    Screen.Recording.2022-02-13.at.03.03.50.mov
  4. kidonng commented on Feb 12, 2022

    @kidonng
    Member

    We can also hide the "Star"/"Starred" text:

    • The icon shows its state clearly
    • We don't hide star count so the button's click target won't become too small (as shown in the video above)
  5. cheap-glitch commented on Feb 13, 2022

    @cheap-glitch
    Contributor

    I'm starting to think we might need a new clean-repo-header feature 😄

  6. fregante commented on Feb 13, 2022

    @fregante
    MemberAuthor

    Hipster mode:

    I like it but last time I proposed doing the same for the repo tabs it was shot down.

  7. kidonng commented on Feb 13, 2022

    @kidonng
    Member

    I like it but last time I proposed doing the same for the repo tabs it was shot down.

    That's a joke inspired by your comment on #4286 (comment)

  8. fregante commented on May 6, 2022

    @fregante
    MemberAuthor

    50% of the feature:

    .pagehead-actions {
    	flex-shrink: 3 !important;
    }

    Missing:

    • add margin-bottom to the buttons so that they're spaced out correctly

    Screen Shot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedenhancementgithub bugsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions