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

When the file explorer is too narrow, filenames should be right-justified and the directory should be partially hidden instead of vice versa #8362

Open
jakeonrails opened this issue Sep 27, 2019 · 3 comments
Assignees

Comments

@jakeonrails
Copy link

The file explorer shows partial directories/filenames when it is too skinny. It would be most useful to show full filenames for as long as possible before the explorer becomes too narrow (narrower than the filename).

This is what it looks like when you narrow the file explorer. Note the filenames are getting truncated or even hidden:

Screen Shot 2019-09-27 at 1 42 17 PM

This is what it could look like instead, where the directories are truncated but you can still read the filenames (except for the really long filenames there, please pretend they don't exist).

Screen Shot 2019-09-27 at 1 43 19 PM

@mislav
Copy link
Contributor

mislav commented Sep 30, 2019

Thank you for reporting! It sounds like we should re-trigger the truncation of directory names every time the sidebar is resized. That would prevent the filenames from getting trucated, too.

We made a similar workaround for file names within modal dialogs recently: #8290

@mislav mislav self-assigned this Sep 30, 2019
@P0637

This comment has been minimized.

@danielb987
Copy link

It sounds like we should re-trigger the truncation of directory names every time the sidebar is resized.

Note that it's much better to remove the beginning of the path than the end of the path. For a large project, there are lots of files with the same top folders, so the end of the path gives more information than the beginning of the path.

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

No branches or pull requests

4 participants