ionic-team / ionic-team/ionic-framework
bug: Viewport/Scaling on Desktop: Ionic Components Appear Gigantic
- Vorherrschende Sprache
- TypeScript
- Sterne
- 52.7k
- Forks
- 13.3k
- Ø Merge
- 1 T. 15 Std.
- Gemergte PRs (30 T.)
- 51
Beschreibung
### 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_
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.