Browse Source

display flex for images

Ivan Asmer 3 years ago
parent
commit
f6279367fe
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/SliderImage.js

+ 1 - 0
src/SliderImage.js

@@ -31,6 +31,7 @@ export default ({images = [], className, onChange, onClick, ref, current:propCur
             const totalWidth    = imgs.reduce(widthSum, 0)
             const totalWidth    = imgs.reduce(widthSum, 0)
             div.style.minWidth  = totalWidth + 'px'
             div.style.minWidth  = totalWidth + 'px'
             div.style.display   = 'flex'
             div.style.display   = 'flex'
+            div.alignItems      = 'flex-start'
         }
         }
     }, [divRef, imgs])
     }, [divRef, imgs])