aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2022-03-30 17:38:34 +0000
committerr <r@freesoftwareextremist.com>2022-03-30 17:38:34 +0000
commit71238ab7bc2bddebf4237af4bcf9eb52b793a185 (patch)
tree540cf476438894bf7ba717fb4f4fc8d9ce3f2479 /static
parentc36314fe7fe6ee5fa75b29930214b56c40e8e46d (diff)
downloadbloat-71238ab7bc2bddebf4237af4bcf9eb52b793a185.tar.gz
bloat-71238ab7bc2bddebf4237af4bcf9eb52b793a185.zip
fluoride: Use max-width for popup
Diffstat (limited to 'static')
-rw-r--r--static/fluoride.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/static/fluoride.js b/static/fluoride.js
index ddf74c6..046f6dd 100644
--- a/static/fluoride.js
+++ b/static/fluoride.js
@@ -149,6 +149,7 @@ function handleReplyToLink(a) {
var copy = status.cloneNode(true);
copy.id = "reply-to-popup";
var ract = event.target.getBoundingClientRect();
+ copy.style["max-width"] = (window.innerWidth - ract.left - 32) + "px";
if (ract.top > window.innerHeight / 2) {
copy.style.bottom = (window.innerHeight -
window.scrollY - ract.top) + "px";
@@ -180,6 +181,7 @@ function handleReplyLink(a) {
var copy = status.cloneNode(true);
copy.id = "reply-popup";
var ract = event.target.getBoundingClientRect();
+ copy.style["max-width"] = (window.innerWidth - 98) + "px";
if (ract.left > window.innerWidth / 2) {
copy.style.right = (window.innerWidth -
ract.right - 12) + "px";