Skip to content

Header features cause search bar overlap #9433

Closed

Description

@fregante

Description

Image
  • repo-avatars
  • ci-link
  • repo-header-info

I wonder if pre-allocating space via static CSS causes GitHub to read the initial sizes correctly.

How to replicate the issue + URL

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

Extension version

26.5.10

Browser(s) used

chrome

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.

Activity

  1. SunsetTechuila commented on May 11, 2026

    @SunsetTechuila
    Contributor

    Hardcoded media query values are the issue

  2. fregante commented on May 11, 2026

    @fregante
    MemberAuthor

    Since the field expands on focus, I think we can just fix it by using flex-shrink: 1 or something along those lines

  3. fregante commented on May 12, 2026

    @fregante
    MemberAuthor

    uh oh. Somehow it got itself in a loop. Resizing the bar stopped it:

    Image

    but then I ended up here after resizing, which suggests that it's not a simple media query issue:

    Image

    Screenshots from v4.20 on Safari. I think it's a rare issue but worth looking into it regardless. Maybe repo-avatars is breaking the "owner" overflow mechanism that turns the username into a dropdown. Another example, very reproducible:

    Image

    Notice that even if you don't consider our features' overlap, fregante is still not collapsed into a ...

  4. fregante commented on May 13, 2026

    @fregante
    MemberAuthor

    I wonder if pre-allocating space via static CSS causes GitHub to read the initial sizes correctly.

    It does, as long as it's done early enough. I tried via our CSS field but it's added too late. I tried via Stylus and it works. In short, hardcoded CSS should be enough.

    Notice how it wraps at the exact time and it never overlaps:

    Image

    This is the demo style: (only works on https://github.com/download-directory/download-directory.github.io)

    .styles-module__contextCrumbLast__tI2e3 {
    	padding-right: 10em;
    	background: blue
    }
    .prc-Breadcrumbs-Item-jcraJ[href="/download-directory"] span {
    	padding-left: 10em;
    	background: red
    }
  5. added
    small
    on May 13, 2026
  6. fregante commented on May 18, 2026

    @fregante
    MemberAuthor

    unread-anywhere also causes this overlap, to some extent (~17px). We should keep in mind for any feature request that asks to make changes to the site header :(

    Could be a good time to combine these two somehow. I'm pretty sure that the only reason they exist is that there are two teams working on "Copilot" and "Agents" separately

    Image
  7. fregante commented on Jul 13, 2026

    @fregante
    MemberAuthor

    #9823 reserves more space in repo-header-info. ci-link has already been merged into the feature. I haven't seen too much overlapping recently.

    repo-avatars could reserve some space if we see this issue, PR welcome like #9489

    If you do please take a screenshot and post it below. Also mention whether reloading the page fixes it.

    If it's not 2026 anymore, please open a new issue.

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

    acceptedbugsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions