Skip to content

Commit

Permalink
adjust chat posiion to reflect new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Jan 25, 2025
1 parent 06f8024 commit 23b41a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,7 @@ export class PastaMirror {
if (pos) {
const messageContainer = document.createElement('div');
messageContainer.innerText = message.message;
const offsetX = 30; // not sure why
const offsetY = 4; // not sure why
messageContainer.style = `position:fixed;top:${pos.top + offsetY}px;left:${pos.left + offsetX}px`;
messageContainer.style = `position:fixed;top:${pos.top}px;left:${pos.left}px`;
messageContainer.classList.add('rising-animation');
messageContainer.classList.add('message-container');
chatContainer.appendChild(messageContainer);
Expand Down

0 comments on commit 23b41a0

Please sign in to comment.