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

fix: make landing page scrollable #2053

Merged
merged 1 commit into from
Nov 4, 2021
Merged

Conversation

janhenrikoverland
Copy link
Collaborator

@janhenrikoverland janhenrikoverland commented Nov 4, 2021

Makes the landing page scrollable. To enable a scrollbar the container needs a height, which in turn needs to be dynamic, so the height of the container is set by using flex-grow = 1 to make it fill the rest of the viewport height. To be able to use flex-grow the container's container needs to be flex. The new overflow rule is set on the StartScreen component so that it does not touch other stuff like dashboard print view.

Web:
https://user-images.githubusercontent.com/1010094/140347833-56e46d7d-51ce-41b3-9327-55df48611926.mp4

Mobile:
https://user-images.githubusercontent.com/1010094/140348329-a44247cf-c2c7-4273-b23b-f699549dc769.mp4

@dhis2-bot
Copy link
Contributor

🚀 Deployed on https://pr-2053--dhis2-dashboard.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify November 4, 2021 15:11 Inactive
@janhenrikoverland janhenrikoverland merged commit 2066f2b into master Nov 4, 2021
@janhenrikoverland janhenrikoverland deleted the fix/landing-page-height branch November 4, 2021 15:41
dhis2-bot added a commit that referenced this pull request Nov 4, 2021
## [31.20.3](v31.20.2...v31.20.3) (2021-11-04)

### Bug Fixes

* make landing page scrollable ([#2053](#2053)) ([2066f2b](2066f2b))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 31.20.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants