mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-06-22 02:44:17 +00:00
Fix UI issues
- Increase media preview size - Fix z-index of more-actions poup - Add left and top position for reply hover popup
This commit is contained in:
parent
402c976ec8
commit
ccdb5ef051
2 changed files with 15 additions and 4 deletions
static
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue