Skip to content

Unable to load branches with long names truncated with ellipsis #1179

Open
@dvanoni

Description

Description

When viewing a branch with a long name, GitHub truncates the name with an ellipsis character () in the branch dropdown. When navigating to such a branch on GitHub Enterprise Server 3.12.2, Octotree fails to load the branch.

CleanShot 2024-05-29 at 15 32 33@2x

Viewing the console logs, it appears that Octotree is trying to request the branch based on the truncated name rather than the full name of the branch.

CleanShot 2024-05-29 at 15 33 52@2x

Viewing the inspector, it appears that the text value of the element is truncated with an ellipsis rather than just via CSS. I'm not sure if this is where Octotree is getting the value of the currently-visible branch, but if so, I could see how it would cause this bug.

CleanShot 2024-05-29 at 15 52 26@2x

The same issue does not occur on github.com, and I wonder if it's because the truncation is performed using CSS, retaining the full branch name within the text value of the element.

CleanShot 2024-05-29 at 15 45 17@2x

Environment (if bug)

  • Octotree version: 7.12.4
  • GitHub Enterprise Server version: 3.12.2
  • Browser & version: Arc Version 1.44.2 (50412) - Chromium Engine Version 125.0.6422.112
  • OS & version: macOS 14.4.1
  • Screenshot, if any (drag an image here)
  • Console error log below this line

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions