Skip to content
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

Updates to WWT sizing during tour on phones #33

Merged
merged 9 commits into from
Aug 22, 2024

Conversation

Carifio24
Copy link
Member

This PR updates the display of the tour for devices with a low W:H aspect ratio (that is, tall), like phones. The approach here is that when the tour is playing on a tall device, we keep the WWT component full-width and shrink the height so that the aspect ratio is 4:3, which is the "safe zone" from the WWT tour editor. If the aspect ratio is > 4/3, we do nothing.

For devices with aspect ratios 0.75 <= a.r. < 4/3 in particular, I think this feels like the natural thing to do. If we think that the font size is too small on taller devices (a.r. < 0.75), what we can instead do is rotate everything and force the display into a landscape-style mode. @patudom let me know what you think is the better approach.

@patudom patudom merged commit 7ddd36e into cosmicds:main Aug 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants