-
Notifications
You must be signed in to change notification settings - Fork 293
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
Do not truncate source file path #331
Conversation
The problem with truncating the path is that sometimes you end-up with ambiguous truncated path. |
I like this, we should not truncate the sources. However, how will this look in the WebUI? I think we have to truncate the string there and make sure the full path is shown on hover. (Use HTML's title attribute) |
5feee53
to
06813cc
Compare
I updated the PR to truncate the path from left in UI. It uses JavaScript as it cannot be done right in CSS. |
I like this change. I've sent you a PR with suggestions. At the moment the source line will render on two rows. Let me know what you think. sustmi#1 |
This will fix #87 |
Do you have any updates on this PR? |
Hi @Nyholm . You want the file path to be always only one line. The best solution for good UX I can think of is the left-side ellipsis (because the left side of the path is usually the same). |
06813cc
to
1add7f0
Compare
I found a different truncating JS plugin - trunk8.js . It looks like it works in Chrome too. |
I thought that was your idea when you truncated it.
Okey, cool. I'll make sure to have a look later today. |
No, I reacted to your comment:
Actually, I do not use the UI at all. I use only the parser and export parts of bundle. :) |
What version of Chrome do you use and what is the resolution? |
I do not know. I get the same result in Safari but not Firefox. Firefox is behaving as expected... Im going to try to revert your changes one by one... |
No, sorry. That is not correct. I have the same issue with master when the content of the third column is too big. This issue is resolved by adding some CSS. Example: li {
word-break: break-all;
} After that it all looks good. Thank you! |
Thank you. I added the |
I think so. I've flagged this PR for a 2nd review. I like it and if any of my collaborators agrees with me they will merge it. |
So I'm quite confused by this PR actually. I understood what it was meant to do. But when I apply it to my project using this bundle I'm wondering why it is even needed. My translation files don't have a full path? The HTML for example looks like this for me: The message translations are already truncated there with or without the trunk8.js. Which leaves me to wonder why are yours not? |
See the changes in FileSource.php The purpose of this PR is to make sure that the But when we have the complete path in the WebUI it looks weird. That is why @sustmi made all this extra changes in the WebUI. After merge of this PR:
|
This looks good. Thanks |
Thank you. |
Description
Remove truncating of source file path to only two levels. I think the only added value of truncation is that filepaths in UI are shorter. Anyway, if this is really a problem, it should be done in the UI/presentation part, not
FileSource
class.