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
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?
@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?
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.
@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.
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.
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:
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.
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.
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.
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.
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.
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.
@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.
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)
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
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...
Activity
shiftkey commentedon May 24, 2017
@parterburn how small are we talking about here? 800x600?
parterburn commentedon May 24, 2017
@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?
shiftkey commentedon May 24, 2017
@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?
niik commentedon Jul 4, 2017
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.
parterburn commentedon Jul 4, 2017
@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.
davesbot commentedon Nov 30, 2017
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.
vmbrasseur commentedon May 8, 2018
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:
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.
Listbd commentedon May 23, 2018
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.
1 remaining item
SkyLined commentedon Nov 19, 2018
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.
travisjneuman commentedon May 26, 2021
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.
shiftkey commentedon May 26, 2021
@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...
vmbrasseur commentedon May 26, 2021
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.
Listbd commentedon May 26, 2021
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.
shiftkey commentedon May 26, 2021
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 🤷🏻
travisjneuman commentedon May 26, 2021
@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.
Listbd commentedon May 27, 2021
Same here. I'm not as bothered by the minimum height as I am by the minimum width restriction.
johnnaaron commentedon Feb 6, 2023
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)
johnnaaron commentedon Feb 6, 2023
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
johnnaaron commentedon Feb 6, 2023
4K 27-inch monitor:

2880x1800 retina screen:

Both are using default scaling, and take up too much space to tile properly
daveycodez commentedon Jan 28, 2024
Bump. Fix it.
Desoroxxx commentedon Jun 14, 2024
So close to perfection
DoctorDerek commentedon Jul 6, 2026
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:
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...