Hi Netlify Team,
I am building apps using react and I noticed some odd behavior after deploying. (across all my Netlify apps) Sizing and margins are changing and do not look at all like on my local. I also run a local build (npm run build) to verify that there are no issues with my code. I didn’t find any and my local build looks as it should. Now I am wondering if Netlify is adding any styles when deploying builds using react?
Please help me as this issue makes it impossible to work.
Hi Perry,
No, I don’t think its a case issue. As I mentioned I have the issue across all pages in all the projects I deploy with Netlify.
Feel free to check also here: romantic-stonebraker-2ab3db
It is not that there are files missing or anthing like that. As you can see in the image I attached. Everything is larger. Margins and sizing are not accurate.
I was running a local build on my machine and it looked fine.
It’s not a new issue I see only now. I have the issue since I use Netlify.
It just came to a point where I really need to get rid of this issue.
which seems to indicate that the issue is relating to a an extension. (if you are also seeing the same error, then it is likely an extension we both have installed.)
if i view the same site in an incognito window (so, without extensions) i see this:
Hey Perry,
I sadly do not have the error you are experiencing. Not in both examples. I attach images.
Incognito is also showing the same margin and sizing issue.
As in the image posted initially. The sizing seems to change after deploying to Netlify.
There is a huge difference in the same browser and the same window size on the same monitor between my local and the Netlify build.
It should be like it is displayed on my local and when deploying locally.
I am attaching the image again.
You can see in the image that the sizing is totally different in the Netlify version.
Hi Perry,
I found the issue a minute ago. It was after all on my side.
I am super, super sorry for making you break your head on my issue.
Thank you so much!!
Hi Yasser,
The issue was in the end not with Netlify after all. It was a browser issue.
Crome was set to a zoom that only happened on my local.
If you experience your issue also only on one browser and or only on your local. Check the zoom.
Thanks for sharing. That is exactly what I need (although I might add a bit more: since I am using an old monitor, the style is wrong in my code; for all future reader)