From ccdb5ef051bfcc9e96f4b0ce98a32735eb48d1c4 Mon Sep 17 00:00:00 2001 From: r Date: Tue, 14 Apr 2020 09:32:53 +0000 Subject: Fix UI issues - Increase media preview size - Fix z-index of more-actions poup - Add left and top position for reply hover popup --- static/fluoride.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'static/fluoride.js') diff --git a/static/fluoride.js b/static/fluoride.js index 0ee3f30..700d980 100644 --- a/static/fluoride.js +++ b/static/fluoride.js @@ -134,6 +134,11 @@ function handleReplyToLink(div) { } else { var copy = status.cloneNode(true); copy.id = "reply-to-popup"; + var ract = event.target.getBoundingClientRect(); + if (ract.top > window.innerHeight / 2) { + copy.style.bottom = (window.innerHeight - + window.scrollY - ract.top) + 'px'; + } event.target.parentElement.appendChild(copy); } } @@ -161,6 +166,11 @@ function handleReplyLink(div) { } else { var copy = status.cloneNode(true); copy.id = "reply-popup"; + var ract = event.target.getBoundingClientRect(); + if (ract.left > window.innerWidth / 2) { + copy.style.right = (window.innerWidth - + ract.right - 12) + 'px';; + } event.target.parentElement.appendChild(copy); } } -- cgit v1.2.3