Browse Source

18 react update and prerender check

asmer 3 months ago
parent
commit
bf4acd06a4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/SliderImage.js

+ 1 - 0
src/SliderImage.js

@@ -150,6 +150,7 @@ export default ({images = [], className, onChange, onClick, ref, current:propCur
     if (window.navigator.userAgent.includes('Prerender')){
         return (<img  src={images[0]} 
                       alt={`image of good`} 
+                      style={{maxWidth: '50vw', maxHeight: '50vh'}}
                         />)
     }