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

Make OnboardingModal content scroll on vertical overflow #7347

Closed
wants to merge 1 commit into from

Conversation

tay
Copy link
Contributor

@tay tay commented Oct 22, 2024

Issue

Closes #7308

Description

The height of the modal container is fixed at 450px while the content could be arbitrarily long. This poses an issue on mobile screens with portrait layout, where the available real estate for text content is limited to roughly 300px width by 250px height (depending on the device's resolution and the size of the header image).

This PR solves the issue by setting overflow-y: scroll on the text container.

However, from a UI standpoint, it's worth reconsidering the best design for mobile devices - having a header image, and then a lengthy header and description all constrained within a modal may not be the best UI.

Note: You will need to clear the onboardingSeen variable in local storage using Chrome DevTools to view the modal.

Preview

Before:
image

After (tested using French, on the Chrome responsive simulator w iPhone 12 dimensions):

Emissions-CO.-de-la-consommation-electrique-en-temps-reel-App-Electricity-Maps.webm

Double check

  • I have tested my parser changes locally with poetry run test_parser "zone_key"
  • I have run pnpx prettier@2 --write . and poetry run format in the top level directory to format my changes.

@VIKTORVAV99
Copy link
Member

There is already a PR for this at #7312 and since the issue has been assigned to that contributor we will continue with that PR.

Regardless, thanks for showing interest in our repository!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intro text overflowing
2 participants