ionic-team / ionic-team/ionic-framework
bug: Viewport/Scaling on Desktop: Ionic Components Appear Gigantic
- 主要言語
- TypeScript
- スター
- 52.7k
- フォーク
- 13.3k
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 51
説明
### 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:
But when I open the same page on a Windows device, everything takes up much more space—the components look gigantic:
So on Windows, I have to manually adjust the browser zoom to avoid this distortion:
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_
コントリビューションガイド
調査の方向性
Start with the reproduction URL and the index.html viewport meta tag shown in the report. Compare the application on macOS and Windows desktop browsers using the listed reproduction steps, and inspect how viewport and scaling differ between environments. Done means identifying a reproducible framework issue and confirming consistent component proportions without manual browser zoom.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- frontend, web-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100