infeng / react-viewer

react image viewer, supports rotation, scale, zoom and so on
https://infeng.github.io/react-viewer
MIT License
735 stars 137 forks source link

Image Atributes not centered #139

Open julianojcs opened 3 years ago

julianojcs commented 3 years ago

If we use the showTotal props, the image Attribute did not center the viewer. The showTotal element move the attibute text to the left.

Fixed it setting the CSS below:

.react-viewer-attribute { position: relative; } .react-viewer-showTotal { position: absolute; right: 0; bottom: 0px; }