Skip to content

Conversation

@JammingBen
Copy link
Contributor

fixes #822 (thanks to @heijligen for providing the patch).

@JammingBen JammingBen self-assigned this Aug 6, 2025
Copilot AI review requested due to automatic review settings August 6, 2025 11:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes viewport height issues on mobile devices by replacing the traditional 100vh CSS unit with the newer 100dvh (dynamic viewport height) unit. This addresses mobile browser behavior where the viewport height changes as browser UI elements (like address bars) show or hide during scrolling.

  • Replace 100vh with 100dvh for dynamic viewport height
  • Update both height and max-height properties to use the new unit

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/web-runtime/src/layouts/Application.vue Updates main layout height to use dynamic viewport height
packages/web-runtime/src/App.vue Updates root web element height and max-height to use dynamic viewport height
Comments suppressed due to low confidence (3)

packages/web-runtime/src/layouts/Application.vue:202

  • The 100dvh unit has limited browser support. Consider adding a fallback using height: 100vh; height: 100dvh; to ensure compatibility with older browsers that don't support dynamic viewport units.
  height: 100dvh;

packages/web-runtime/src/App.vue:144

  • The 100dvh unit has limited browser support. Consider adding a fallback using height: 100vh; height: 100dvh; to ensure compatibility with older browsers that don't support dynamic viewport units.
  height: 100dvh;

packages/web-runtime/src/App.vue:145

  • The 100dvh unit has limited browser support. Consider adding a fallback using max-height: 100vh; max-height: 100dvh; to ensure compatibility with older browsers that don't support dynamic viewport units.
  max-height: 100dvh;

@JammingBen JammingBen mentioned this pull request Aug 6, 2025
2 tasks
@JammingBen JammingBen merged commit 7fd6d33 into main Aug 6, 2025
30 checks passed
@JammingBen JammingBen deleted the fix/mobile-dynamic-viewport-height branch August 6, 2025 13:37
@openclouders openclouders mentioned this pull request Aug 6, 2025
1 task
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.

Dynamic viewport height

3 participants