Correctly position share button in viewer

Addresses #824