You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The thing that very annoyed that the preview frame size is become 480x480 of pixels. I feel like previewing on an apple watch instead of a mobile phone.
I think it's better to make preview frame size fixed, e.g 320x480 of pixel for mobile regardless what size is defined on registered media queries. This way it's also possible to add another preview mode e.g Mobile and Tablet landscape because the sizes are static and not depends on registered media queries.
Otherwise you can use this simple aspect ratio formula to calculate the height using javascript:
(original height / original width) x new width = new height
// Calculate frame size for mobile based on registered media query
let height = (480 / 320) * 480;
// height = 720
The text was updated successfully, but these errors were encountered:
I agree with your recommendation. Allowing changes to the defined media queries to flow through to all areas of the app (in addition to just the preview window) is on my list of things to do 😄
Currently the preview frame width are based on
tailor_get_registered_media_queries
but the height is static for example mobile is 480px.My theme's media queries are quite different, for mobile max width is 480px instead of 320px and so on, so I filtered them out with:
The thing that very annoyed that the preview frame size is become 480x480 of pixels. I feel like previewing on an apple watch instead of a mobile phone.
I think it's better to make preview frame size fixed, e.g 320x480 of pixel for mobile regardless what size is defined on registered media queries. This way it's also possible to add another preview mode e.g Mobile and Tablet landscape because the sizes are static and not depends on registered media queries.
Otherwise you can use this simple aspect ratio formula to calculate the height using javascript:
The text was updated successfully, but these errors were encountered: