Skip to content

Ability to make the file list wider #1588

Closed

Description

@xt0rted

Description

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.

image

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.

image

Version

GitHub Desktop version: 0.5.4
OS version: Win10 Creators Update (10.0.15063)

Activity

  1. shiftkey commented on May 18, 2017

    @shiftkey
    Member

    I'm also noticing the file sorting isn't the same between both versions, not that that really matters.

    Happy to look into this in a separate issue if you want to put together a repro of it.

  2. xt0rted commented on May 18, 2017

    @xt0rted
    ContributorAuthor

    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.

  3. joshaber commented on May 18, 2017

    @joshaber
    Contributor

    I've actually wanted this too 👍

  4. added
    help wanted
    on May 18, 2017
  5. niik commented on May 19, 2017

    @niik
    Member

    For anyone who'd like to take a stab at this the Resizable component for the file list lives in repository.tsx and it supports overriding the maximum width making for an excellent first contribution!

  6. rlabrecque commented on May 22, 2017

    @rlabrecque

    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.

  7. shiftkey commented on May 22, 2017

    @shiftkey
    Member

    Any downside to having the maximumWidth set to window.innerWidth / 2?

    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.

  8. rlabrecque commented on May 22, 2017

    @rlabrecque

    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.

  9. joshaber commented on Jun 15, 2017

    @joshaber
    Contributor

    As per #1816, we're 👍 on increasing the max size:

    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.

  10. hjobrien commented on Jul 13, 2017

    @hjobrien
    Contributor

    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.

  11. j-f1 commented on Jul 20, 2017

    @j-f1
    Contributor

    I like how DevDocs handles truncation in this case.

    By default, the content is truncated:
    not hovered

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

    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.

  12. 2 remaining items

  13. mastef commented on Sep 13, 2017

    @mastef

    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.

    githubdesktop

  14. mastef commented on Sep 13, 2017

    @mastef

    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?

  15. niik commented on Sep 14, 2017

    @niik
    Member

    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.

    See #1816 (comment)

    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

    ellipsis

    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.

  16. locked as resolved and limited conversation to collaborators on Jul 20, 2018
  17. unlocked this conversation on Sep 27, 2018
  18. lcucurachi commented on Aug 16, 2023

    @lcucurachi

    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.

  19. chyde80 commented on Sep 21, 2023

    @chyde80

    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.

    same here

  20. niik commented on Sep 21, 2023

    @niik
    Member

    @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

  21. chyde80 commented on Sep 21, 2023

    @chyde80

    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.

  22. niik commented on Sep 21, 2023

    @niik
    Member

    @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.

  23. chyde80 commented on Sep 21, 2023

    @chyde80

    ah, yes you are correct. I'm sorry, I'm referring to the file list in a PR on github.com

  24. lcucurachi commented on Sep 21, 2023

    @lcucurachi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions