Set reaction's z-index to show the tooltip in front of other comments (#20035)

This commit is contained in:
ktmouk 2023-09-06 18:48:12 +09:00 committed by GitHub
parent 22f836edc2
commit 40e63a16c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,6 +95,7 @@ function initializeCommentsPage() {
var butts = document.getElementsByClassName('reaction-button');
for (var i = 0; i < butts.length; i++) {
var butt = butts[i];
butt.style.zIndex = butts.length - i;
butt.onclick = function (event) {
var thisButt = this;
event.preventDefault();