Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
Resize Image on phone after orientation change in next.js

After fighting with the Image component from Next.js, and finally befriending it more and more, I have one final issue I can't seem to figure out.

When I visit my page on a mobile phone, having it upright (in portrait mode), the images render correctly - filling the maximum width available. All is good so far. Now when I rotate my phone 90 degrees, changing to landscape mode, all my CSS changes according to my media queries, but the Images stay in the same size they originally loaded. Thus, not filling the maximum width available now. On refresh, they are rendered correctly.

Also, in the Chrome Dev Tool Phone Emulator, it all works as expected. When I change orientation, it immediately changes the image size accordingly.

Let me know if you need any part of my code, looking forward to hearing from you!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!