ionic-team / ionic-team/ionic-framework

bug: Viewport/Scaling on Desktop: Ionic Components Appear Gigantic

Đang mở
#30,890 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
triage
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

### Prerequisites

- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [x] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [x] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v7.x, v8.x

### Current Behavior

How can I prevent some screens from making the UI components look too large (as if the page is zoomed in)?

On some devices with higher resolutions, this doesn’t happen. But on devices with lower screen resolutions (mainly Windows), the entire application looks oversized, and I have to manually reduce the browser zoom to make it usable.

For example, on macOS the Ionic components look normal:
Image

But when I open the same page on a Windows device, everything takes up much more space—the components look gigantic:
Image

So on Windows, I have to manually adjust the browser zoom to avoid this distortion:
Image

I’ve searched through many topics in the Ionic Forum, GitHub, and Stack Overflow, but I haven’t found any answer that solves this issue.

My project’s `index.html `viewport meta tag looks like this (it’s the Ionic default):
``

### Expected Behavior

The components proportion should respect the primary size of the application

### Steps to Reproduce

1. Create a sample app
2. Open it on a MacOS desktop in landscape
3. Open it on a Windows desktop in landscape
4. Compare the resolutions

### Code Reproduction URL

https://medstudier.com/app

### Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/Users/brunofreire/.nvm/versions/node/v21.7.3/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 8.7.2

Capacitor:

Capacitor CLI : 7.4.2
@capacitor/android : 7.4.2
@capacitor/core : 7.4.2
@capacitor/ios : 7.4.2

Utility:

cordova-res : not installed globally
native-run : 2.0.1

System:

NodeJS : v21.7.3 (/Users/brunofreire/.nvm/versions/node/v21.7.3/bin/node)
npm : 10.5.0
OS : macOS Unknown

### Additional Information

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.