Skip to content

mobile-tabs bad wrapping on 1000+ counters #7812

Closed

Description

@fregante

Description

This is a little difficult to fix in flexbox. If it only happens on bugs-tab maybe we just need min-width, but that’s just a last resort and not a full fix.

IMG_5652

How to replicate the issue + URL

https://github.com/oven-sh/bun

Extension version

24.8.20

Browser(s) used

Safari

Token ⚠️

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

Activity

  1. AbhinRustagi commented on Oct 9, 2024

    @AbhinRustagi

    Another solution could be to reduce the font size and the icon dimensions to try and keep the icon and counter inline

  2. fregante commented on Oct 9, 2024

    @fregante
    MemberAuthor

    I think you're suggesting this, and I'm not a fan of it due to the wasted space on most tabs:

    Screenshot 5

    This is worse:

    Screenshot 6
  3. AbhinRustagi commented on Oct 9, 2024

    @AbhinRustagi

    Not this, I'll try it and add a screenshot

  4. fregante commented on Oct 9, 2024

    @fregante
    MemberAuthor

    In the meantime, Claude may have give me some CSS to properly set up my original layout with CSS Grid:

    .grid-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
      gap: 10px;
      width: 100%;
      height: 200px; /* Adjust as needed */
    }
    
    .item1 {
      grid-column: 1;
      grid-row: 1;
      justify-self: end;
    }
    
    .item2 {
      grid-column: 2;
      grid-row: 1;
      justify-self: start;
    }
    
    .item3 {
      grid-column: 1 / span 2;
      grid-row: 2;
      justify-self: center;
    }
    
    /* When item2 is missing */
    .grid-container:not(:has(.item2)) .item1 {
      grid-column: 1 / span 2;
      justify-self: center;
    }

    I'll give this a go.

  5. self-assigned this
    on Oct 9, 2024
  6. AbhinRustagi commented on Oct 10, 2024

    @AbhinRustagi

    I think in your PR, you decreased the spacing, I think that's a good way, too. What I was thinking was to decrease the font size of the counter (eg 2.3K) and the icon dimensions.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions