Dynamic viewport scaling#35
Conversation
|
I've been hoping forever that someone would do this! Thank you Ryder 😄 |
|
I agree--unfortunately the current UI layout for vistool is by no means easy to fit on a mobile device. This also holds true for the main vistool page: I do think eventually this can be a possibility, but with a few major refactorings: Main PageThe main page needs to be mobile friendly. This should be the easiest part, as we already have the sidebar ready to go and we only need to shuffle a few elements around. A media query changing the flex to column on mobile should give us roughly the result we need. Just changing this already led to a far more pleasant layout: The blob might need to be just removed altogether on mobile due to it being a bit finniky with webkit. Algorithm PageThis one would be significantly harder to optimize for mobile, but I have a few ideas to try to reuse some of the existing code. Here were my thoughts on this:
If time allows, I could prepare a few figma mockup designs and see where we could take it from there. In the meantime, I could explicitly add an override to allow overflow on smaller devices (to get our inconvenient but still possible setup for mobile back) |
- Added mobile layout for homescreen - Added exception for overflow to occur on mobile devices for the main algorithm page. This is a temporary change to allow some settings to still be accessed on mobile by scrolling, but will be removed after the algorithms page receives a mobile refactoring.







This PR aims to add dynamic viewport scaling to the algorithms page. Rather than hardcoded heights, all UI elements are now controlled via flexboxes. As it's no longer needed, I have also removed the "Change Canvas Size" control.
Overview
Before:
After:
Testing
I confirmed the scaling with Chromium, Firefox, and a fairly scuffed webkit linux distribution, but if someone with safari could run this locally on their end it would be appreciated. Thanks!