fix: dynamically resize window height based on selected monitor aspect ratio - #93
Conversation
… height calculation
There was a problem hiding this comment.
Pull request overview
This PR fixes a UI issue where portrait-oriented monitors caused the preview area to consume most of the fixed 650px window height, pushing controls out of view. The fix dynamically calculates and resizes the window height based on the selected monitor's aspect ratio.
Key Changes:
- Added dynamic window height calculation in
RequestConfigmethod based on monitor aspect ratio - Removed trailing whitespace from two lines for code cleanliness
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Thank you so much for fixing this issue, I haven't had much time to work on TopNotify recently. I'll see when I can publish this fix to the store. |
|
Hi @SamsidParty Thank you for building TopNotify in the first place — it’s a fantastic tool and I really appreciate all the work you’ve put into it. I’m happy I could contribute in this small way! |
|
Hi @SamsidParty Just another quick heads up - I noticed another issue mentioning this same issue, here: #77 Just wanted to let you know, to help clean up the list of open issues 😉 Thanks again for your efforts!! |
When a portrait-oriented monitor is selected, the preview area consumes
most of the fixed 650px window height, pushing controls out of view.
This fix calculates the window height dynamically based on the selected
monitor's aspect ratio:
The window now resizes automatically when switching between landscape
and portrait monitors in the dropdown.
Fixes #91