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: Ensure contents are not clipped on mobile browsers #3974

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rumzledz
Copy link
Contributor

Description

Basically 100vh is problematic on browsers like Safari mobile due to the presence of the address bar. 100vh ignores Safari mobile's URL bar whereas 100dvh takes that into account and removes its height from the overall screen estate calculation, which is suitable for our use case:

dvh

Testing

Note

The best way to test this is with the iOS simulator

  1. Go to the Colony dashboard
  2. Verify that the children for these components are fully visible
  • Colony Switcher
  • Colony Action sidebar
  • User Hub
  • User Menu
  • Action form

Resolves #3352

@rumzledz rumzledz self-assigned this Dec 18, 2024
@rumzledz rumzledz marked this pull request as ready for review December 18, 2024 13:51
@rumzledz rumzledz requested a review from a team as a code owner December 18, 2024 13:51
@rumzledz rumzledz force-pushed the fix/3352-prefer-dvh-over-vh branch 6 times, most recently from b40f368 to 8daa081 Compare December 18, 2024 15:18
@rumzledz rumzledz force-pushed the fix/3352-prefer-dvh-over-vh branch from 8daa081 to 6b3cb90 Compare December 18, 2024 18:20
Copy link
Contributor

@mmioana mmioana left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this issue @rumzledz

The content is fully visible on your branch 💯

Screen.Recording.2024-12-19.at.10.25.46.mov

While on master is clipped ✂️

Screen.Recording.2024-12-19.at.10.26.40.mov

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.

Sidebars aren't scrollable on mobile
2 participants