Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1730 from showtime-xyz/fix/update-next-image-css
Browse files Browse the repository at this point in the history
fix: update image css
  • Loading branch information
alantoa committed Nov 29, 2022
2 parents e8ae7cd + 2ed7039 commit a7a71a1
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions apps/next/src/styles/styles.css
Expand Up @@ -157,18 +157,10 @@ body {
}

/* For Next.js <Image /> https://nextjs.org/docs/api-reference/next/image#known-browser-bugs */
/* For Safari v10~15+ */
@media not all and (min-resolution: 0.001dpcm) {
/* For Safari v15+ */
@supports (font: -apple-system-body) and (-webkit-appearance: none) {
img[loading="lazy"] {
clip-path: inset(1px);
}
}
/* For Safari v16+ becuase Safari v16 is supported resolution media query */
@media (min-resolution: 0.001dpcm) {
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
img[loading="lazy"] {
clip-path: inset(1px);
}
clip-path: inset(0.6px);
}
}
/* Hide scrollbar for Chrome, Safari and Opera */
Expand Down

0 comments on commit a7a71a1

Please sign in to comment.