-
Hi I am using See This is only happening in Safari (desktop and mobile) and works fine on Chrome+Firefox |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Dhaval, Did you work this out? I was seeing something similar in Safari on my site. I added am imgStyle attribute to GatsbyImage and that seemed to fix it. For your code, you would need to try: <GatsbyImage
style={{
gridArea: "1/1",
backgroundSize: "cover",
width: "200px",
height: "200px",
borderRadius: "20px",
}}
imgStyle={{ borderRadius: "20px" }}
layout="fullWidth"
alt={"Picture of " + data.name}
image={getImage(data.avatarFile)}
formats={["auto", "webp", "avif"]}
/> Keep the other style attribute as it is as that might still be needed by other browsers. Let me know if that works, Rodney |
Beta Was this translation helpful? Give feedback.
Hi Dhaval,
Did you work this out?
I was seeing something similar in Safari on my site. I added am imgStyle attribute to GatsbyImage and that seemed to fix it. For your code, you would need to try: