Skip to content

Conversation

@wxxsfxyzm
Copy link
Contributor

The wide-screen detection logic is enhanced to better handle various device sizes and orientations.

The new logic considers two conditions:

  • The screen width exceeds a large threshold (WIDE_SCREEN_THRESHOLD).
  • The screen width is above a medium threshold (MEDIUM_WIDTH_THRESHOLD) and the aspect ratio is landscape-like.

This ensures a two-pane layout is used not only on very wide screens but also on devices like landscape phones or unfolded foldables.

Feel free to review and close this if you don't think it is necessary.

The wide-screen detection logic is enhanced to better handle various device sizes and orientations.

The new logic considers two conditions:
- The screen width exceeds a large threshold (`WIDE_SCREEN_THRESHOLD`).
- The screen width is above a medium threshold (`MEDIUM_WIDTH_THRESHOLD`) and the aspect ratio is landscape-like.

This ensures a two-pane layout is used not only on very wide screens but also on devices like landscape phones or unfolded foldables.
Copy link

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 enhances the wide-screen detection logic in the example app to better support various device sizes and orientations, particularly landscape phones and unfolded foldables.

  • Introduces a two-tiered detection system: definite wide screens (>840dp) and medium-width landscape devices (>600dp with landscape aspect ratio)
  • Adds new constants for medium width threshold and aspect ratio detection
  • Replaces single-condition wide-screen detection with a dual-condition OR logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@YuKongA YuKongA merged commit 7002c04 into compose-miuix-ui:main Nov 18, 2025
6 checks passed
@wxxsfxyzm wxxsfxyzm deleted the wide-screen-patch branch November 19, 2025 03:42
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.

2 participants