Open
Description
Expected Behavior
When initialising a matirial box element matirlize does not generate a div around the image and instead just leaves the image on it own
Current Behavior
Matirial box generates a div around the image meaning that if you set
margin: 0 auto
On your image then the div takes 100% veiwport width making the narrower image flash from the center to the left for a second when opening the image up.
Demo: https://codepen.io/godalming123/pen/eYeBROe?editors=0010
Possible Solution
Just don't generate a div around the image
Steps to Reproduce (for bugs)
See my pen: https://codepen.io/godalming123/pen/eYeBROe?editors=0010
Context
This issue has affected me as the images on my site have margin 0 auto so when I open them they flash to the left.