Skip to content

Commit

Permalink
Bubble: webkit compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Jul 2, 2024
1 parent 83fb185 commit 0fa8d5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions themes/chatview/psi/bubble/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
var themeStyle = document.getElementById("themeStyle").sheet;
var cssBody = util.findStyleSheet(themeStyle, "body").style;
const reactionsSelector = new shared.chat.ReactionsSelector(shared.session);
const likeButton = new shared.chat.LikeButton(reactionsSelector, document.documentElement);
const likeButton = new shared.chat.LikeButton(reactionsSelector, document.body);
const chatMenu = new shared.chat.ContextMenu();

var applyPsiSettings = function() {
Expand Down Expand Up @@ -289,7 +289,7 @@
margin-top: -0.6rem;
margin-left: -2.44rem;
display: inline-block;
z-index: -1;
/*z-index: -1;*/
clip: rect(0.6rem, 3rem, 1.5rem, 2rem);
}

Expand Down Expand Up @@ -442,6 +442,7 @@
cursor: pointer;
padding-top: 1rem;
/*background-color: green;*/
font-size: 1rem;
opacity: 0;
transition: opacity 0.3s linear, bottom .3s, font-size .3s;
}
Expand Down
2 changes: 1 addition & 1 deletion themes/chatview/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ function initPsiTheme() {
this.show = function(messageId, nearEl, scrollEl) {
this.currentMessage = messageId;
const nbr = nearEl.getBoundingClientRect();
rs.style.top = (nbr.top + scrollEl.scrollTop) + "px";
rs.style.top = (nbr.top + scrollEl.scrollTop + document.documentElement.scrollTop) + "px";
rs.style.display = "flex";
const selectorRect = rs.getBoundingClientRect();
const scrollRect = scrollEl.getBoundingClientRect();
Expand Down

0 comments on commit 0fa8d5d

Please sign in to comment.