Skip to content

Is the minimum height of 660px necessary? #1702

Closed

Description

@parterburn

private minHeight = 660

This prevents someone from snapping it to a corner of smaller screens.

Activity

  1. shiftkey commented on May 24, 2017

    @shiftkey
    Member

    This prevents someone from snapping it to a corner of smaller screens.

    @parterburn how small are we talking about here? 800x600?

  2. added
    more-info-needed
    on May 24, 2017
  3. parterburn commented on May 24, 2017

    @parterburn
    Author

    @shiftkey snapping to corners takes 1/2 the width and 1/2 the height, so this is affecting all resolutions with less than 1320 height.

    Stats from W3School suggest this would effect at least 2/3 of their users: https://www.w3schools.com/browsers/browsers_display.asp

    If the 660 was an arbitrary number to begin with, is it possible to take it down to something like 300 to allow for this snapping functionality to act as expected on more screen sizes?

  4. shiftkey commented on May 24, 2017

    @shiftkey
    Member

    @parterburn ah yes, I didn't notice the emphasis on corner here.

    #1254 was where this was added, and I suspect it's part of the changes to ensure the Welcome Wizard bits fit in nicely but beyond that I'm not sure.

    I'm also curious how, if we drop this constraint to something lower, how this affects the dialog for Options/Preferences and the diff view look - do things appear squashed? @parterburn have you dug into this?

  5. removed
    more-info-needed
    on May 26, 2017
  6. added
    design-input-needed
    on Jun 29, 2017
  7. niik commented on Jul 4, 2017

    @niik
    Member

    We chose the minimum width and height after carefully looking at screen resolution statistics of GitHub users.

    While I could see us perhaps allowing a slightly lower minimum height (say ~600) the current values were definitely chosen deliberately to work on the absolute majority of our users screens while guaranteeing us the screen real-estate we need and are going to need for the features we're planning. I'll grant you that snapping to corners was not a scenario we took into account while selecting these values.

    Unfortunately 300px is not nearly enough to fit even the features currently in the app without an effort to have our components adapt to, either statically or responsively, that height. While I'm not going to rule out such work in the future it's currently not in the scope of our roadmap and as such I'm going to close this issue out to keep our backlog manageable.

  8. parterburn commented on Jul 4, 2017

    @parterburn
    Author

    @niik thanks for the explanation. Data driven decisions are always better :)

    I do think the assumption that every user uses Github maximized might be a stretch (so simply looking at resolution would be grossly overstating), but it sounds like you needed to make the decision based on fitting all of the pieces in the window.

  9. davesbot commented on Nov 30, 2017

    @davesbot

    Forcing such a large minimum height is completely inconsistent with other app behaviors.
    Standard UI behavior and user expectation is that we can size a window pretty much as we want.

  10. vmbrasseur commented on May 8, 2018

    @vmbrasseur

    Hey, gang.

    Are the minWidth and minHeight restrictions actually necessary?

    They feel very arbitrary, and they remove the ability of users to control their own desktop environments.

    I'm on a modern 2017 MacBook Pro, and the minWidth of 960 means the window takes up more than half of the width of my laptop screen. I have no way to resize it smaller to it and my terminal/editor each take up half of the screen:

    screen shot 2018-05-07 at 20 23 34

    If there is no technical reason to have these minimum width/height requirements, I request they be removed so the user is allowed to do as they wish with their desktop environment, even if it means the app is not as pretty as the team would like. Please don't dictate how we lay out our desktop environments.

  11. Listbd commented on May 23, 2018

    @Listbd

    I'm using the Windows Desktop app. I have one monitor oriented in portrait with a fairly low resolution (effectively 800x1067 - 800 is the width).
    Though I cannot manually stretch the window to fit its width inside the monitor, I can maximize the window and it will size itself inside 800x1067.
    I do not experience any problems using the app with this size. Therefore, I'm at a bit of a loss at to why the minimum restore ("manual sizing") size (specifically the width) must be set so wide.

    Please reconsider allowing smaller window sizes. If you did this then I would be able to make the height a bit shorter without having the width fall off the monitor.

    This is a great tool, but it is often left open and placed "out of the way" on the desktop in a small location - similar to email, slack, etc.

  12. locked as resolved and limited conversation to collaborators on Jul 22, 2018
  13. 1 remaining item

  14. SkyLined commented on Nov 19, 2018

    @SkyLined

    The reason given for having a minimum does does not appear to explain why the app needs 660px height ALL THE TIME, just why you might want the app to have 660px minimum height SOME of the time.

    It would seem that there are two perfectly good solutions that do not require an excessively large minimum height: scrollbars and automatic resizing when needed. I cannot understand why you would force every part of the UI to the minimum required by a small subset of its features.

  15. travisjneuman commented on May 26, 2021

    @travisjneuman

    This is still a thing, splitting a screen on a laptop with any code editor means GitHub is way to wide to be able to code when all I am doing with GitHub is committing and pushing. Is this on the roadmap yet? Please change these limits, users can handle sizing a window to how they need it to work - these limits do not make any sense. If I make it too small for example, it is my problem and I can then just simply resize it.

  16. shiftkey commented on May 26, 2021

    @shiftkey
    Member

    @neumant which OS are you using? And which release?

    The constraint was dropped in shiftkey#153 and is in the most recent release 5041697 so I'm curious about your setup and why this has returned...

  17. vmbrasseur commented on May 26, 2021

    @vmbrasseur

    I'm on the latest & greatest macOS on a 2017 MBP and I can still reproduce this. The window won't allow me to resize it below a certain width and height.

  18. Listbd commented on May 26, 2021

    @Listbd

    Looks like that reference is for Linux users ( shiftkey#153 ). Would like to have this fixed for Windows Desktop users as well please. I have the latest GitHub Desktop Version 2.8.2 (x64) and latest Windows 10 updates.

  19. shiftkey commented on May 26, 2021

    @shiftkey
    Member

    I have no strong feelings on whether the main project should take on this workaround, and the patch I made was targeting the Linux fork 🤷🏻

  20. travisjneuman commented on May 26, 2021

    @travisjneuman

    @shiftkey I am on the latest version of MacOS and GitHub Desktop currently, but can also reproduce on the latest version of Windows 10 and GitHub Desktop. I am specifically talking about the width requirement, I didn't realize this thread was about the height it just came up on a google search.

  21. Listbd commented on May 27, 2021

    @Listbd

    Same here. I'm not as bothered by the minimum height as I am by the minimum width restriction.

  22. johnnaaron commented on Feb 6, 2023

    @johnnaaron

    Large minimum-width and minimum-height is bad for accessibility (scaled windows, small screens), corner-snap window tile multitasking, and Hi-DPI screens (GHDesktop takes over half my screen width/height and can't be corner-tiled).

    Please reconsider removing hard minimum-width/height and instead use "soft" default sizing like other Electron apps (ala VSCode)

  23. johnnaaron commented on Feb 6, 2023

    @johnnaaron

    If this is unreasonable, exposing a 'settings.json' equivalent in Roaming or Application Support may also suffice, so users could set MIN_WIDTH: 0, MIN_HEIGHT:0 like in Discord

  24. johnnaaron commented on Feb 6, 2023

    @johnnaaron

    4K 27-inch monitor:
    Screenshot 2023-02-06 at 3 18 39 PM

    2880x1800 retina screen:
    Screenshot 2023-02-06 at 3 21 05 PM

    Both are using default scaling, and take up too much space to tile properly

  25. daveycodez commented on Jan 28, 2024

    @daveycodez

    Bump. Fix it.

  26. Desoroxxx commented on Jun 14, 2024

    @Desoroxxx

    image

    So close to perfection

  27. DoctorDerek commented on Jul 6, 2026

    @DoctorDerek

    I routinely use 6+ windows (3 wide + 2 tall layout via PowerToys) on my 4K screen at 2× DPI zoom, so there basically shouldn't be a minimum size at all...

    More importantly, why isn't the minimum size affected by zooming out? I can zoom GitHub Desktop out (Ctrl+-) to ridiculously tiny font sizes, yet I can't resize the window smaller.

    Math:

    • 3840 × 2160 4K
    • 2× zoom = 1920 × 1080 (full HD/1080p)
    • 1920/3 = 640
    • 1080/2 = 540
    • Minimum size should be 640×540 or smaller

    Arguably the best UX is no minimum size at all (minimum size something like 100×100 or 1×1) since if the UI entirely breaks below a certain size the user will just know to resize bigger...

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    design-input-neededenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions