Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deal with long module names in the outline sidebar #2808

Closed
hugobarauna opened this issue Oct 1, 2024 · 0 comments · Fixed by #2810
Closed

Deal with long module names in the outline sidebar #2808

hugobarauna opened this issue Oct 1, 2024 · 0 comments · Fixed by #2810

Comments

@hugobarauna
Copy link
Member

hugobarauna commented Oct 1, 2024

Problem

For longer module names, the last part of the module name is not visible in the outline sidebar

For example, if the module name is Foobar. Repo.Migrations.AddPosts, the sidebar will look like this:

image

Here's a user facing that problem: https://x.com/cd_slash_x/status/1839961298441814510

CleanShot 2024-10-01 at 10 07 07

Solution ideas

  • break the module names across multiple lines. (The best idea is probably to introduce ​ or "\u200B" in Elixir after each dot using String.replace and disable the truncation with ... via CSS)
  • we could show the ellipsis from the left (but that may look weird)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant