Issue detecting viewport width with Percy

I’m in the process of setting up visual reviews through percy and I’m running into an issue with detecting the viewport width accurately when running through percy. Our project has javscript code that detects the width and then renders the UI different depending on the width.
This screen shot shows the widths that were detected when running in chrome locally on my laptop:
enter image description here

And this one shows the widths that were detected when running through percy and having a width of 600px set in the .percy.yml file (note the 600px in the upper right corner):
enter image description here

69 thoughts on “Issue detecting viewport width with Percy”

Leave a Comment