vuetifyjs / nuxt-module

Zero-config Nuxt Module for Vuetify
https://nuxt.vuetifyjs.com/
MIT License
226 stars 22 forks source link

fix(ssr)!: include device pixel ratio in w/h calculation #199

Closed userquin closed 4 months ago

userquin commented 9 months ago

This PR sets Vuetify SSR flag to true when SSR enabled

There is a problem with Chrome running on Android, sending weird viewport size.

We need to request device pixel ratio (Sec-CH-DPR) to calculate the right width/height.

https://github.com/WICG/responsive-image-client-hints/issues/23

https://twitter.com/userquin/status/1760047138762064277

Using Samsumg Galaxy S22 Ultra:

GGzwwW1awAASbQt

closes #205 closes #232

related #197

netlify[bot] commented 9 months ago

Deploy Preview for vuetify-nuxt-module ready!

Name Link
Latest commit 60ad8005305f03aac42fc0526c4f0a748cf884ac
Latest deploy log https://app.netlify.com/sites/vuetify-nuxt-module/deploys/669cbfea96b66b0009f4f751
Deploy Preview https://deploy-preview-199--vuetify-nuxt-module.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.