DEV Community

Cover image for Trust with DevTools Broken
commdao
commdao

Posted on

Trust with DevTools Broken

Making use of the Chrome Dev Tools habit has been a more recent practice of mine. I've used it to inspect other people's code or disable JavaScript to get around some subscription-gated sites, sure, but to do due diligence with my own code?

After mixed results with optimizing my portfolio site for mobile, I've been more conscious of simulating mobile devices with Device Mode.

And with my latest journaling app, I stopped to preview it all every step of the way-- Android and iOS to boot!

false positive of the site layout

When I finally deployed it on Netlify, I shared the link to my friend and mentor who gave me props. But the screencap he shared looked weird.

reality of the site layout

I was crushed to see it looked just as jumbled when I pulled up the site on my own phone. It felt especially demoralized when I put more effort than ever to have responsiveness in mind.

Dev Tools, you lied to me!

Dev Tools lied

How can mirrors be real if our eyes aren't real. - Jaden Smith

Never thought that quote would hit as hard as it did now.

How are you supposed to check the site layout if you can't trust the preview? And to that, I still don't have an answer. Said friend thought it might've been a rem - px issue, but adjusting that math didn't seem to make a difference.

Device Mode preview will remain a mystery, but luckily the actual fix for my site layout wasn't too bad.

Those elements that are all jumbled at the top were created at a later stage as I was designing things. And, instead of respecting the HTML top to bottom order (I thought only JavaScript cared about that?), I left those elements near the bottom of the HTML. I had things positioned okay through CSS, but position: fixed and position: absolute were conflicting with other styles. It was much easier to let things fall in line with flexbox and adjust from there.

For those of you who felt Dev Tools betrayal, how long did it take you to regain trust? 🥺 👉👈

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️