Increase the padding a bit to prevent stuff from being hidden by the link URL.

This commit is contained in:
ccd0 2015-06-30 18:49:20 -07:00
parent ac2286ae8d
commit 87db92f55b

View File

@ -46,7 +46,7 @@ ImageHover =
el.play() if Conf['Autoplay']
[width, height] = (+x for x in file.dimensions.split 'x')
{left, right} = @getBoundingClientRect()
padding = 16
padding = 25
maxWidth = Math.max left, doc.clientWidth - right
maxHeight = doc.clientHeight - padding
scale = Math.min 1, maxWidth / width, maxHeight / height