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

Ensure that onboarding buttons are visible, even on short viewports #2324

Merged
merged 8 commits into from May 13, 2024

Conversation

franknoirot
Copy link
Collaborator

@dshaw pointed this out to me, that on certain devices the "Parametric modeling" onboarding step's buttons to dismiss or advance were hidden off the bottom of the screen, and he had to resort to zooming out to see them again.

Turns out that panel's height (and those of some of the other steps) were using percentages (via the TailwindCSS h-3/4 class) and I had forgotten that CSS percentage-based heights are based on the width of that element. What we wanted was 3/4 of the viewport, or 75vh. I also added overflow behavior so the items don't bust out of their container on even shorter viewports.

Before (from dshaw)

image

After

image

@franknoirot franknoirot added bug Something isn't working design Design related issues labels May 8, 2024
@franknoirot franknoirot requested a review from dshaw May 8, 2024 13:55
@franknoirot franknoirot self-assigned this May 8, 2024
Copy link

qa-wolf bot commented May 8, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented May 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview May 11, 2024 0:54am

@franknoirot franknoirot merged commit 58a62b8 into main May 13, 2024
16 checks passed
@franknoirot franknoirot deleted the franknoirot/onboarding-buttons branch May 13, 2024 15:50
@pierremtb pierremtb mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working design Design related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant