Increase the padding a bit to prevent stuff from being hidden by the link URL.
This commit is contained in:
parent
ac2286ae8d
commit
87db92f55b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user