Skip to content

Commit

Permalink
Update editor.js (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
raisedeyebrowemoji authored Mar 1, 2025
1 parent b2bc5df commit 6f44b77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ export class PastaMirror {
if (pos) {
const messageContainer = document.createElement('div');
messageContainer.innerText = message.message;
const pointer_color = `hsl(${getSettings().userHue}, 50%, 100%)`;
messageContainer.style = `position:fixed;top:${pos.top}px;left:${pos.left}px`;
messageContainer.style.color = pointer_color
messageContainer.classList.add('rising-animation');
messageContainer.classList.add('message-container');
chatContainer?.appendChild(messageContainer);
Expand Down

0 comments on commit 6f44b77

Please sign in to comment.