Pictures may not be visible on mobile devices, but they will display properly on desktop browsers

The images from OpenWeather on my react weather app suddenly stopped displaying on mobile. On mobile, the weekly forecast and currently forecast images show white borders instead of actual images. Surprisingly, the website works perfectly fine on desktop. I am clueless as to why this issue is occurring.

Snippet of code generating the weekly weather:

  <div className="weekly">
    {
      weatherData.data.daily.map((item, index) => {
        // console.log(item)
        if (index > 0) {
          return (
            <div className="weekly-item" key={index}>
                <span className="item-day">
                  {moment(moment.unix(item.dt)).local().format('ddd')}
                </span>
                <span className="item-icon">
                  <img
                    src={`http://openweathermap.org/img/wn/${item.weather[0].icon}.png`}
                    className="forecast-icon"
                    alt="Weather forecast"
                  />
                </span>
                <br />
                <div className="min-max">
                  <span className="item-max">
                    {Math.round(item.temp.max)}&deg;
                  </span>
                  <span className="item-min">{Math.round(item.temp.min)}&deg;</span>
                </div>
            </div>
          )
        }
      })
    }
  </div>

Visit my site:

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the best way to eliminate the curved border and inset box shadow from the Material UI TextField component in React?

Check out this input field: https://i.sstatic.net/Z6URV.png Notice the inner shadow and curved borders. Take a look at the given code snippet: import React, {Component} from 'react'; import TextField from 'material-ui/TextField'; im ...

Converting arrays in a JSON file into HTML formatting

After going through several questions on Stack Overflow, I haven't found a solution for my specific issue. Other questions seem to focus on formatting data from complete JSON files, while my question is about formatting elements of an array parsed fro ...

React's useEffect enables the use of an asynchronous context in a component

Is there a way to trigger the useEffect function in my main component as soon as the context is loaded? I am attempting to create an api request with the header value received from the context component. However, upon loading the page component, it throws ...

Populating the table with data through a repetitive process

Is there a way to automatically populate a table using values from an array? <table> <thead> <tr> <div ng-repeat="n in range" > <th> {{vm.data.list[n].temp.day}} {{vm.symbal}} ...

Updating the Background Color of a Selected Checkbox in HTML

I have a straightforward question that I've been struggling to find a simple answer for. Can anyone help me with this? Here's the checkbox code I'm working with: <input type="checkbox"> All I want to do is change the backgr ...

Effortless Page Navigation - Initial click may lead to incorrect scrolling position, but the subsequent link functions perfectly

While implementing the Smooth Page Scroll code from CSS Tricks, we encountered an issue where clicking on a navigation link for the first time only scrolls down to a point that is approximately 700px above the intended section. Subsequent clicks work perfe ...

Center two distinct elements using Bootstrap's center-block class

Check out my code snippet below: <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> <div class="container"> <div class="row"> <div class="center-block" style="w ...

Create HTML elements in React that function as valid form elements, capable of being submitted

I understand that some may think this is a duplicate, but please take a look at my specific issue first. I encountered a challenge while working on a Django polymorphic model. I needed to present users with a form based on their choices in previous steps ...

Issue with PlayWright HTML report not being served in a Docker container

I am currently executing my PlayWright tests from a docker container to validate my ReactJS application Everything is functioning as expected, and a report directory is created successfully In the event that some tests fail, PlayWright attempts to disp ...

Locating an individual element using Selenide (Selenium) and the cssSelector method

If you have a structure of elements similar to the one shown in the image, it is possible to extract each static property using: $$('#static-information .value').get(0) or $$('.static-property .value').get(0) However, as each static p ...

What is the best way to display a date picker from a different page as a pop-up when a button is clicked on the current

Chapter One <button class="btn btn-outline-primary btn-sm btn-block " >Place order</button> Chapter Two <button class="simplepicker-btn" >Show Date Picker</button> > <script> > let simplepicker = new SimpleP ...

Ways to eliminate space between column arrangement in Bootstrap

I've designed 3 cards containing 2 widgets each in the sidebar. To ensure responsiveness, I utilized bootstrap 4 column ordering. One problem is when the right column is larger than the left one in a row of 2 columns, there's an awkward space be ...

The functionality of Three.js arc drawing in canvas renderer seems to have encountered issues on Chrome

Looking at this example from the library, it is clear that the circles are adjusting their line width and appear thin when they are in close proximity. This functionality used to function properly. Currently, I am using Chrome version 27.0.1453.93 on OSX ...

Cutting an image in ReactJS using the HTML5 canvas feature

Seeking a way to crop images in reactjs without relying on any external library. The goal is for users to upload an image and perform cropping using raw JavaScript, then replace the uploaded image. How can this be achieved without the use of libraries? Loo ...

create the text with double bold - adjusted pages

Is there a method to enhance the boldness of the text without adjusting the font size? Currently, the following styling is applied: numbers: { fontSize: 30, color: '#31C283', fontWeight: 'bold', }, Is there a way to m ...

PHP loaded HTML does not allow JavaScript to execute

My system includes an announcements feature where all announcements are retrieved from a database and displayed on the screen using Ajax and PHP. Below is the code snippet used to load each announcement onto the page: echo '<div id="announcements ...

What is the best way to arrange a number of inline-block elements with equal size in a vertical alignment?

My goal is to display a set number of items in a container, all with the same fixed size. The challenge arises when the content of each item varies in length, causing misalignment vertically: .child { display: inline-block; background: #bbbbbb; marg ...

W3C does not provide validation for the Viewport

Why is W3C not validating my viewport meta tag? <title>DIDIx13</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <!-- I'm getting a warning "Consider ...

I am facing an issue where childnodes return as undefined after a clone operation, making it impossible for me to assign their attributes as needed,

There seems to be an issue with changing the attributes of my child nodes as they are returning as undefined. It's possible that the problem arises when the nodes are placed in a list. Upon testing, it was discovered that placing the nodes in a list c ...

Each container has its own div counter

Help needed to complete this code. The task is to count the number of .resp-containers in each container separately. Then, based on that count, assign a corresponding class to each element within the containers. Check out the code here $(document).ready(f ...