From 40e63a16c9c11ecb2fb84d6d1388cb6fc06250fc Mon Sep 17 00:00:00 2001 From: ktmouk Date: Wed, 6 Sep 2023 18:48:12 +0900 Subject: [PATCH] Set reaction's z-index to show the tooltip in front of other comments (#20035) --- .../javascripts/initializers/initializeCommentsPage.js.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/initializers/initializeCommentsPage.js.erb b/app/assets/javascripts/initializers/initializeCommentsPage.js.erb index c407d2c94..31b54a95e 100644 --- a/app/assets/javascripts/initializers/initializeCommentsPage.js.erb +++ b/app/assets/javascripts/initializers/initializeCommentsPage.js.erb @@ -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();