You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GIT: Large empty space between the file path and the Show Actions button #5680
@mbien
I don't seem to have described the problem clearly, sorry.
The location of the Show Actions button depends on the longest file path in the commit, even if that path is not displayed.
And when the commit file list is minimized to a single file, it looks strange. And sometimes because of one file with a long path, the button can go off screen for all the other files in the commit.
I think it would be better to remove the empty space between the file path and the button.
@troizet in your screenshot it shows only one file for some reason which makes it look weird if it happens to be the shortest path.
I can't explain why you see only one file. I also question a bit how useful the "show all files" button is. I am thinking about making this the default and removing the button, so that when a user expands a commit, there would be always all files.
For me personally, I think it looks a bit better when its formatted like a table, yes there can be the odd situation when a very short path is next to a very long path - but this is already mitigated a little bit by limiting the max empty space to 400 chars.
Activity
mbien commentedon Mar 3, 2024
this seems to be an optimization:
netbeans/ide/versioning.util/src/org/netbeans/modules/versioning/history/SummaryCellRenderer.java
Line 203 in 67cc930
it computes the line size only if the commit has less than 20 "events". An event is essentially a change to a file, like add/remove/modify.
We might be able to remove this check, or bump it to a larger number.
going to fix this in an upcoming PR since I try to improve the history view a bit.
mbien commentedon Mar 4, 2024
-> #7128 PR should create a dev-build to play around with
troizet commentedon Mar 5, 2024
@mbien
I don't seem to have described the problem clearly, sorry.
The location of the Show Actions button depends on the longest file path in the commit, even if that path is not displayed.
And when the commit file list is minimized to a single file, it looks strange. And sometimes because of one file with a long path, the button can go off screen for all the other files in the commit.
I think it would be better to remove the empty space between the file path and the button.
mbien commentedon Mar 5, 2024
@troizet in your screenshot it shows only one file for some reason which makes it look weird if it happens to be the shortest path.
I can't explain why you see only one file. I also question a bit how useful the "show all files" button is. I am thinking about making this the default and removing the button, so that when a user expands a commit, there would be always all files.
For me personally, I think it looks a bit better when its formatted like a table, yes there can be the odd situation when a very short path is next to a very long path - but this is already mitigated a little bit by limiting the max empty space to 400 chars.
troizet commentedon Mar 5, 2024
One file is displayed if you look at the commit history for a specific file.
I have recorded a video for clarity.
Display commit history for a specific file:
git_show_history_for_one_file.mp4
Display full commit history:
git_show_full_history.mp4
I agree with you here.
mbien commentedon Mar 5, 2024
ah! thanks, that was the missing piece - now I understand how to get there.
I check atm if I can implement a file filter with highlighting, after that I check if this can be improved somehow.
troizet commentedon Mar 5, 2024
I think it would be fine, but just not for the commit history for a particular file.
mbien commentedon Mar 10, 2024
this should work now I hope. PR is updated (see dev-build).
troizet commentedon Mar 10, 2024
Tried dev-build. Everything works fine. Thank you very much!
mbien commentedon Mar 10, 2024
@troizet wow that was quick! Thanks for checking.