summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnonymous <anonymous@lainchan.org>2015-09-13 01:02:19 +0200
committerAnonymous <anonymous@lainchan.org>2015-09-13 01:02:19 +0200
commit51bea121ce412a07aeb428d9808af1514cbc694f (patch)
tree1648cd0b423499be3b7eda918ffe5a6a692b65d9
parent686a9eed5686428e5ac65ce991933e8afd62c3aa (diff)
Add a small margin to the off-screen post pop-up.
Without this margin you have to keep your mouse very still while hovering a post quote for a post that is off-screen, otherwise, by placing the mouse on the pop-up itself, the mouseover event is triggered and the pop-up disappears, making for a very annoying user experience when reading post pop-ups. This patch separates the pop-up from the mouse so that this doesn't happen.
-rw-r--r--js/post-hover.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/post-hover.js b/js/post-hover.js
index e30cbf43..0a03c1a2 100644
--- a/js/post-hover.js
+++ b/js/post-hover.js
@@ -77,6 +77,7 @@ onready(function(){
.css('position', 'absolute')
.css('font-style', 'normal')
.css('z-index', '100')
+ .css('margin-left', '1em')
.addClass('reply').addClass('post')
.insertAfter($link.parent())