Skip to content

Commit

Permalink
add highlight color
Browse files Browse the repository at this point in the history
  • Loading branch information
thepiyush-303 committed Dec 28, 2024
1 parent 94e0faf commit f1d6efd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ export const MessageAggregator = ({
const element = document.getElementById(`ec-message-body-${msgId}`);
if (element) {
setShowSidebar(false);
element.scrollIntoView({ behavior: 'smooth', block: 'center' });
element.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
element.style.backgroundColor = "rgba(255, 204, 0, 0.5)";
setTimeout(() => {
element.style.backgroundColor = "";
}, 1000);
}
}
};
Expand Down

0 comments on commit f1d6efd

Please sign in to comment.