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

Long folder names are truncated in file picker #14290

Closed
MorrisJobke opened this issue Feb 19, 2019 · 6 comments · Fixed by #14912
Closed

Long folder names are truncated in file picker #14290

MorrisJobke opened this issue Feb 19, 2019 · 6 comments · Fixed by #14912
Labels
3. to review Waiting for reviews bug design Design, UI, UX, etc. papercut Annoying recurring issue with possibly simple fix.
Milestone

Comments

@MorrisJobke
Copy link
Member

  • having two folder names that are long and only have a different ending
  • move a file into that folder via the context menu and "Copy or move" action
  • expected: know which folder has which name
  • actual: folder ending is truncated

On iOS this was solved by truncating the middle of the name, which solved that use case, but not the one where the middle part is crucial. See nextcloud/ios#760 by @nikslor. There also the full name is planned to be resolved in full width by a long press click.

bildschirmfoto 2019-02-19 um 14 15 15

any ideas @nextcloud/designers ?

@MorrisJobke MorrisJobke added bug design Design, UI, UX, etc. papercut Annoying recurring issue with possibly simple fix. labels Feb 19, 2019
@MorrisJobke MorrisJobke added this to the Nextcloud 16 milestone Feb 19, 2019
@juliusknorr
Copy link
Member

I'm not aware of an easy way to move the ellipsis to the middle of a string with CSS. Maybe @skjnldsv ?

@stefan-niedermann
Copy link
Member

@juliushaertl this is not possible with only using css.

@skjnldsv skjnldsv added 1. to develop Accepted and waiting to be taken care of good first issue Small tasks with clear documentation about how and in which place you need to fix things in. labels Mar 3, 2019
@jancborchardt
Copy link
Member

There’s a proposal for middle-cropping at https://www.w3.org/wiki/Text-overflow_middle_cropping, but issues for this are open since 7 years or more. :)

What we could do here is simply show the full name on hover as a tooltip. However this should really only happen when the name is too long, because otherwise it’s going to be duplicated.

Another idea would be to move away from this table-style view and instead put the size and modified date in a second row. That way the filename can take up more space and it looks more modern.

@jancborchardt jancborchardt removed the good first issue Small tasks with clear documentation about how and in which place you need to fix things in. label Mar 13, 2019
@rullzer
Copy link
Member

rullzer commented Mar 29, 2019

I'd like the tooltip as a quick fix for now at least.

@skjnldsv
Copy link
Member

I'll take a look to see if javascript can easily do that.
Something like this, not in the middle, but at least show some part of it?
https://codepen.io/markchitty/pen/RNZbRE

We can even do it in full css 🤔

@skjnldsv skjnldsv added 3. to review Waiting for reviews and removed 1. to develop Accepted and waiting to be taken care of labels Mar 30, 2019
@skjnldsv
Copy link
Member

skjnldsv commented Apr 1, 2019

Fix in #14912

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug design Design, UI, UX, etc. papercut Annoying recurring issue with possibly simple fix.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants