The className strings use template strings to include optional classes.
The way the template strings are written at the moment results in excess whitespace at the end of the string if optional classes are not needed. This could be 1 or more space characters.
While this doesn't cause any HTML errors the resultant strings look a bit odd when used for server side rendering.
I've tried out a fix by refactoring the template strings.
IIZ V3
The className strings use template strings to include optional classes.
The way the template strings are written at the moment results in excess whitespace at the end of the string if optional classes are not needed. This could be 1 or more space characters.
While this doesn't cause any HTML errors the resultant strings look a bit odd when used for server side rendering.
I've tried out a fix by refactoring the template strings.
Files affected: InnerImageZoom.js, Image.js, ZoomImage.js