diff --git a/template.jst b/template.jst index 39b594507..77ffc6ae7 100644 --- a/template.jst +++ b/template.jst @@ -26,7 +26,7 @@ function imagePreview() { var span = document.createElement('span'); span.className = 'hover'; span.appendChild(img); - this.appendChild(span); + this.parentNode.insertBefore(span, this.nextSibling); } function storeInstall(e) { if (!e.shiftKey && !e.altKey && !e.ctrlKey && !e.metaKey && e.button === 0) { diff --git a/web.css b/web.css index e4cefd49c..4d66dfad1 100644 --- a/web.css +++ b/web.css @@ -46,7 +46,7 @@ a.screenshot > img { span.hover { display: none; } -a:hover > span.hover { +a:hover + span.hover { display: block; position: fixed; top: 0;