keystatic icon indicating copy to clipboard operation
keystatic copied to clipboard

bug: ux - github branch selector - long branch names are truncated with no way to read it

Open tresorama opened this issue 4 months ago • 1 comments

Current

If a branch name is long, the selector doesn't expand, and the user cannot understand which branch is.

Image

Potential Solutions

  1. Make the popever wider. But the problem can be still present if the text is wider then the new width
  2. Make the item (of the selector) horizontally scrollable
  3. Do not truncate text when excede the width of the item, but wrap to multiple lines

I think best would be a combination of 1 and 3:

  • wider popover, with multiline support

tresorama avatar Aug 14 '25 19:08 tresorama

Temp Fix
Not tested on mobile, only desktop.

Image
// component - select branch popover 
.kui\:reset[role=presentation][data-placement=bottom]:has(> span):has(> [role=listbox][aria-label="Suggestions"]) {
  & [role=option] {
    display: flex;

    > * {
      flex: 1;
    }

    .list-item-text > span {
      display: block;
    }
  }
}

tresorama avatar Sep 21 '25 15:09 tresorama