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

style: correct mobile viewport [DET-4664] #1695

Merged
merged 6 commits into from
Dec 10, 2020

Conversation

hkang1
Copy link
Contributor

@hkang1 hkang1 commented Dec 10, 2020

Description

Depending on different mobile browsers, the viewport height of 100 does not take the browser chrome into calculation. Meaning, when you view the mobile view the bottom of our page will be cut off instead of rendering all of the page to fit nicely in the visible content area.

Detailed explanation of the viewport issue on mobile:
https://css-tricks.com/the-trick-to-viewport-units-on-mobile/

Before:
Screen Shot 2020-12-09 at 8 29 23 PM
Screen Shot 2020-12-09 at 8 29 12 PM

After:
Screen Shot 2020-12-09 at 8 20 34 PM
Screen Shot 2020-12-09 at 8 20 43 PM

Test Plan

Test in iOS simulator, both iOS Safari and iOS Chrome.
Test in actual devices once deployed.

Commentary (optional)

Checklist

  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.

@hkang1 hkang1 requested a review from hamidzr as a code owner December 10, 2020 01:38
@cla-bot cla-bot bot added the cla-signed label Dec 10, 2020
Copy link
Contributor

@apizzini apizzini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, only asking about all the 2x height css props, I guess is a fallback since consistently done.

@apizzini apizzini assigned hkang1 and unassigned apizzini Dec 10, 2020
@hkang1 hkang1 merged commit 7ed21d4 into determined-ai:master Dec 10, 2020
@hkang1 hkang1 deleted the 4664-correct-mobile-viewport branch December 10, 2020 19:08
justin-determined-ai pushed a commit to justin-determined-ai/determined that referenced this pull request Dec 10, 2020
@dannysauer dannysauer added this to the 0.13.11 milestone Feb 6, 2024
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.

3 participants