mirror of
https://git.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-25 21:31:27 +00:00
fluoride: Use max-width for popup
This commit is contained in:
parent
c36314fe7f
commit
71238ab7bc
|
@ -149,6 +149,7 @@ function handleReplyToLink(a) {
|
||||||
var copy = status.cloneNode(true);
|
var copy = status.cloneNode(true);
|
||||||
copy.id = "reply-to-popup";
|
copy.id = "reply-to-popup";
|
||||||
var ract = event.target.getBoundingClientRect();
|
var ract = event.target.getBoundingClientRect();
|
||||||
|
copy.style["max-width"] = (window.innerWidth - ract.left - 32) + "px";
|
||||||
if (ract.top > window.innerHeight / 2) {
|
if (ract.top > window.innerHeight / 2) {
|
||||||
copy.style.bottom = (window.innerHeight -
|
copy.style.bottom = (window.innerHeight -
|
||||||
window.scrollY - ract.top) + "px";
|
window.scrollY - ract.top) + "px";
|
||||||
|
@ -180,6 +181,7 @@ function handleReplyLink(a) {
|
||||||
var copy = status.cloneNode(true);
|
var copy = status.cloneNode(true);
|
||||||
copy.id = "reply-popup";
|
copy.id = "reply-popup";
|
||||||
var ract = event.target.getBoundingClientRect();
|
var ract = event.target.getBoundingClientRect();
|
||||||
|
copy.style["max-width"] = (window.innerWidth - 98) + "px";
|
||||||
if (ract.left > window.innerWidth / 2) {
|
if (ract.left > window.innerWidth / 2) {
|
||||||
copy.style.right = (window.innerWidth -
|
copy.style.right = (window.innerWidth -
|
||||||
ract.right - 12) + "px";
|
ract.right - 12) + "px";
|
||||||
|
|
Loading…
Reference in a new issue