-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS media query weird match behavior using min-width #302
Comments
This happens on both |
I've investigated this issue a little bit and it seems that the problem is that the scrollbar size is not being taken into account so the actual viewport size is lower than the device. On this screenshot I'm with a 375 px width iPhone X but the body size is only 354 px. @manojVivek I've played around a little bit with the WebView component adding that extra width to the devices and it worked but I'm not sure if it's the best approach. I'm not familiarized with the entire architecture. Also not sure how it will look for other OS than MacOS. |
Bug persists in 0.7.0. It seems to be connected to the value of the "responsive" checkbox. I created a custom iPad size, 768x1024, checked the responsive box, and the With the box unchecked it's consistently about 5-6 pixels short of the declared width. |
@ruisaraiva19 @sebasrodriguez @andronocean Hey guys, thanks for the triage information. With all the info, I'm able to figure out the cause for the issue, it is because of the |
@amankkg Thanks for reporting it, this will go live in the next release. |
environment
Responsively 0.6.1
Ubuntu 20.04 based Linux
problem
In order to match a device width using
(min-width: 768px)
(iPad) media query I have to write 762 instead of 768. Same with other values for given rule.reproduction
Let's match 5 built-in devices: iPhone 5/SE (default, 320x568), iPhone X (375x812), iPad (768x1024), iPad Pro (1024x1366), Laptop HiDPI (1440x900)
markup
media queries (original)
Note: I use PostCSS nested properties syntax for brevity, but it behaves the same with correct CSS3 version
result (colors mismatch)
media queries (subtracted 6px)
result (now colors match)
PS: images are clickable
Update: added app version
The text was updated successfully, but these errors were encountered: