-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
WebUI: Limit window sizes to viewport size #22919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
width: loadWindowWidth(id, 800), | ||
height: loadWindowHeight(id, 650), | ||
width: loadWindowWidth(id, 800, false), | ||
height: loadWindowHeight(id, 650, false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Viewport size limitations disabled for RSS downloader window. The height probably doesn't need to be limited, since it appears to support scrolling, but I figured this window's sizing can be handled later all at once.
@@ -325,7 +336,7 @@ const initializeWindows = () => { | |||
maximizable: false, | |||
paddingVertical: 0, | |||
paddingHorizontal: 0, | |||
width: 424, | |||
width: limitWidthToViewport(424), | |||
height: 100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opted not to add the limiter to the vast majority of window heights since they're already so small.
This change makes the WebUI easier to use on small screens (e.g. mobile). Every window has been tested for compatibility.
6494977
to
fff8c68
Compare
@Piccirello |
This change makes the WebUI easier to use on small screens (e.g. mobile). In cases where the window's default size is larger than the user's screen, the window will be resized appropriate (see example below). Every window has been tested for compatibility. The only windows that don't support this are the multi file rename window and the RSS Downloader window.
Height and width auto resized to fit on screen w/ small margin:

Closes #19813