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
I'm running on a 27" 4k @ 150% scaling and the electron version of the app generally feels smaller than the old native version. For the most part this isn't an issue but for things like the file list the maximum width is half that of the native version. I'd like to be able to make this wider now that the file paths are no longer shown in the wider portion of the window.
According to the dev tools this is set to 350px, I'd like to see a max width closer to 600px. I'm also noticing the file sorting isn't the same between both versions, not that that really matters.
Version
GitHub Desktop version: 0.5.4 OS version: Win10 Creators Update (10.0.15063)
Reacted by Lindsey Meyer, Artem Sapegin, Nate Allison, Scott Fleckenstein, mastef, Alok Kumar Singh, Vasileios Chroniadis, Niko-O and Lorenzo
Comparing the two versions shows that the old version scaled that list. So if the window was up to 50% the width of my screen it would max out at ~350px, but as the window got wider it would also get wider until at full width it was at ~600px. Having it be able to auto size like that would be awesome.
Any downside to having the maximumWidth set to window.innerWidth / 2?
That feels more natural to me. Two problems when trying it out: If you resize the window then it doesn't resize the Resizable until the window loses focus, and the sidebar-section toolbar button doesn't update until you manually resize the Resizable.
Also agree that we should allow a larger maximum width for the file list / sidebar. In the short term, let's allow the sidebar to be resized until there's no more space. We'll set a max width so that the branch and push/pull buttons aren't squished horizontally. In the long term, we can determine the max width dynamically based on how much space we need to fit information in the branch and push/pull button.
I figure the maxWidth of this component should be overridden in repository.tsx but I'd like to make the max width equal to the window.innerWidth - (<branch button width> - <push/pull button width>) but I'm a little new to tsx/jsx so I was wondering if there is a sensible way to access those widths in repository.tsx. I'm thinking the right way would be to add a prop to RepositoryView.
As mentioned in #2440 - Is there any reason for the maximumWidth being 495 actually? This is not wide enough for my use-case. There's a lot of space for the diff, which is unused, but I can't read the long paths in the tiny left-side list. Would be great to not have an arbitrary maximum width - or just make it 80% of the window or something. I'd like to decide myself how wide I want that list, or if I want to focus on the diff.
Reacted by Brian Surowiec, Darnell Arford and Paul Rogero
As mentioned in #2440 - Is there any reason for the maximumWidth being 495 actually? This is not wide enough for my use-case. There's a lot of space for the diff, which is unused, but I can't read the long paths in the tiny left-side list. Would be great to not have an arbitrary maximum width - or just make it 80% of the window or something. I'd like to decide myself how wide I want that list, or if I want to focus on the diff.
we should allow a larger maximum width for the file list / sidebar. In the short term, let's allow the sidebar to be resized until there's no more space. We'll set a max width so that the branch and push/pull buttons aren't squished horizontally. In the long term, we can determine the max width dynamically based on how much space we need to fit information in the branch and push/pull button.
In other words, the reason that maxWidth is 495 is that it was the quickest way to alleviate some pain users had by allowing them a sidebar wider than 350px. We have nothing at all against a dynamic calculation of the max width but that required a little bit more engineering effort as we'd have to ensure that the sidebar resizes when the window width shrinks and scales back up when the window width expands. We'd love to see a PR that deals with the dynamic resize and allows for resizing the sidebar up to the point where the toolbar buttons still fit.
Especially since the path display cuts off both in the middle of the path with some ... and cuts off the end of the filename as well with .... - why?
So they definitely shouldn't be doing that and I'm unable to reproduce it locally. Here's what it should do
I'd love to get to the bottom of that, could you please open an issue about it and add some details about your setup? In particular I'd like information about your display resolution and DPI settings.
I think this should be reopened. The changed files list is not resizable anymore. I find it hard to review changes when I cannot see the full filenames.
I think this should be reopened. The changed files list is not resizable anymore. I find it hard to review changes when I cannot see the full filenames.
@chyde80, @LoKKeR96 please open a new issue describing the behavior you're seeing. The changed files list is definitely still resizable so there must be something else going on in y'all's setup
using latest chrome, no special extensions that would interfere, I see no way to resize the file list. Am I being stupid? I would expect to be able to drag the area near the scroll bar to widen or narrow it.
@chyde80 Ah, I see where the confusion stems from. This is the repository and issue tracker for GitHub Desktop. I believe what you're referring to is the web interface of GitHub.com. Please visit our GitHub Community Discussions to leave feedback on the website.
Activity
shiftkey commentedon May 18, 2017
Happy to look into this in a separate issue if you want to put together a repro of it.
xt0rted commentedon May 18, 2017
Comparing the two versions shows that the old version scaled that list. So if the window was up to 50% the width of my screen it would max out at ~350px, but as the window got wider it would also get wider until at full width it was at ~600px. Having it be able to auto size like that would be awesome.
joshaber commentedon May 18, 2017
I've actually wanted this too 👍
niik commentedon May 19, 2017
For anyone who'd like to take a stab at this the
Resizablecomponent for the file list lives in repository.tsx and it supports overriding the maximum width making for an excellent first contribution!rlabrecque commentedon May 22, 2017
Any downside to having the maximumWidth set to window.innerWidth / 2?
That feels more natural to me. Two problems when trying it out: If you resize the window then it doesn't resize the Resizable until the window loses focus, and the
sidebar-sectiontoolbar button doesn't update until you manually resize the Resizable.shiftkey commentedon May 22, 2017
I'd relax this even more, like VSCode does. Here's how far you can drag their sidebar:
My only concern would be if the diffs look squashed, but I'll leave it up to others to test this out to see if there's a sweet spot.
rlabrecque commentedon May 22, 2017
My initial feeling was to set it to window.innerWidth - (the_size_of_toolbar_buttons * 2). So yeah, something like that could work as well.
joshaber commentedon Jun 15, 2017
As per #1816, we're 👍 on increasing the max size:
hjobrien commentedon Jul 13, 2017
I figure the maxWidth of this component should be overridden in repository.tsx but I'd like to make the max width equal to the
window.innerWidth - (<branch button width> - <push/pull button width>)but I'm a little new to tsx/jsx so I was wondering if there is a sensible way to access those widths inrepository.tsx. I'm thinking the right way would be to add a prop to RepositoryView.j-f1 commentedon Jul 20, 2017
I like how DevDocs handles truncation in this case.
By default, the content is truncated:

However, when hovering over the item, it expands to show the full text, “breaking out” of the list

Since the full title is displayed elsewhere in the window when the file is selected, this behavior only works when the item isn’t selected.
2 remaining items
mastef commentedon Sep 13, 2017
As mentioned in #2440 - Is there any reason for the maximumWidth being
495actually? This is not wide enough for my use-case. There's a lot of space for the diff, which is unused, but I can't read the long paths in the tiny left-side list. Would be great to not have an arbitrary maximum width - or just make it 80% of the window or something. I'd like to decide myself how wide I want that list, or if I want to focus on the diff.mastef commentedon Sep 13, 2017
Especially since the path display cuts off both in the middle of the path with some
...and cuts off the end of the filename as well with....- why?niik commentedon Sep 14, 2017
See #1816 (comment)
In other words, the reason that maxWidth is 495 is that it was the quickest way to alleviate some pain users had by allowing them a sidebar wider than 350px. We have nothing at all against a dynamic calculation of the max width but that required a little bit more engineering effort as we'd have to ensure that the sidebar resizes when the window width shrinks and scales back up when the window width expands. We'd love to see a PR that deals with the dynamic resize and allows for resizing the sidebar up to the point where the toolbar buttons still fit.
So they definitely shouldn't be doing that and I'm unable to reproduce it locally. Here's what it should do
I'd love to get to the bottom of that, could you please open an issue about it and add some details about your setup? In particular I'd like information about your display resolution and DPI settings.
Dynamically set max width of resizable component (desktop#1588, deskt…
lcucurachi commentedon Aug 16, 2023
I think this should be reopened. The changed files list is not resizable anymore. I find it hard to review changes when I cannot see the full filenames.
chyde80 commentedon Sep 21, 2023
same here
niik commentedon Sep 21, 2023
@chyde80, @LoKKeR96 please open a new issue describing the behavior you're seeing. The changed files list is definitely still resizable so there must be something else going on in y'all's setup
chyde80 commentedon Sep 21, 2023
using latest chrome, no special extensions that would interfere, I see no way to resize the file list. Am I being stupid? I would expect to be able to drag the area near the scroll bar to widen or narrow it.
niik commentedon Sep 21, 2023
@chyde80 Ah, I see where the confusion stems from. This is the repository and issue tracker for GitHub Desktop. I believe what you're referring to is the web interface of GitHub.com. Please visit our GitHub Community Discussions to leave feedback on the website.
chyde80 commentedon Sep 21, 2023
ah, yes you are correct. I'm sorry, I'm referring to the file list in a PR on github.com
lcucurachi commentedon Sep 21, 2023
@chyde80 for reference, I posted a request here https://github.com/orgs/community/discussions/67849
Would be helpful if you upvoted it.