Skip to content

Commit 1e91fa8

Browse files
committed
Issue-comments: Fix reaction feature. See #105
1 parent 4290d9a commit 1e91fa8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

github-issue-comments.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
/* for testing: ".ghic-hidden { opacity: 0.3; } */
4242
body .ghic-hidden { display:none !important; }
4343
.ghic-hidden-participant, body .ghic-avatar svg, .dropdown-item.ghic-checked .ghic-count,
44-
.ghic-hideReactions .TimelineItem .comment-reactions,
44+
.ghic-hide-reactions .TimelineItem .comment-reactions,
4545
.select-menu-header.ghic-active + .select-menu-list .dropdown-item:not(.ghic-has-content) { display:none; }
4646
.ghic-menu-wrapper input[type=checkbox] { height:0; width:0; visibility:hidden; position:absolute; }
4747
.ghic-menu-wrapper .ghic-toggle { cursor:pointer; text-indent:-9999px; width:20px; height:10px;
@@ -355,10 +355,10 @@
355355
if (name === "plus1") {
356356
hidePlus1(init, item);
357357
} else if (item && name === "reactions") {
358-
toggleClass($("body"), "ghic-hideReactions", isHidden);
359-
toggleClass(item, "ghic-has-content", $$(".has-reactions").length - 1 > 0);
358+
toggleClass($("body"), "ghic-hide-reactions", isHidden);
359+
toggleClass(item, "ghic-has-content", $$(".has-reactions").length > 0);
360360
// make first comment reactions visible
361-
item = $(".TimelineItem .has-reactions");
361+
item = $(".TimelineItem .comment-reactions");
362362
if (item) {
363363
item.style.display = "block";
364364
}

0 commit comments

Comments
 (0)