From 9a0adcb210ffe6f974baf01ae3d28d27958bfb48 Mon Sep 17 00:00:00 2001 From: darkred Date: Wed, 3 Oct 2018 18:55:46 +0300 Subject: [PATCH 1/3] Update github-issue-comments.user.js Better distinguish the filters that are being applied by using a strikethrough on the relevant applied filter name. --- github-issue-comments.user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/github-issue-comments.user.js b/github-issue-comments.user.js index 91fff78..91a2b4b 100644 --- a/github-issue-comments.user.js +++ b/github-issue-comments.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name GitHub Toggle Issue Comments -// @version 1.3.2 +// @version 1.3.3 // @description A userscript that toggles issues/pull request comments & messages // @license MIT // @author Rob Garrison @@ -31,6 +31,7 @@ .ghic-button .dropdown-item { font-weight:normal; position:relative; } .ghic-button .dropdown-item span { font-weight:normal; opacity:.5; } .ghic-button .dropdown-item.ghic-has-content span { opacity:1; } + .dropdown-item.ghic-has-content:not(.ghic-checked){ text-decoration: line-through; } .ghic-button .dropdown-item.ghic-checked span { font-weight:bold; } .ghic-button .dropdown-item.ghic-checked svg, .ghic-button .dropdown-item:not(.ghic-checked) .ghic-count { display:inline-block; } From cd2fe16ff0879b1220d25370aed33f6060b34323 Mon Sep 17 00:00:00 2001 From: darkred Date: Wed, 3 Oct 2018 19:43:30 +0300 Subject: [PATCH 2/3] Update github-issue-comments.user.js --- github-issue-comments.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-issue-comments.user.js b/github-issue-comments.user.js index 91a2b4b..3a531e9 100644 --- a/github-issue-comments.user.js +++ b/github-issue-comments.user.js @@ -31,7 +31,7 @@ .ghic-button .dropdown-item { font-weight:normal; position:relative; } .ghic-button .dropdown-item span { font-weight:normal; opacity:.5; } .ghic-button .dropdown-item.ghic-has-content span { opacity:1; } - .dropdown-item.ghic-has-content:not(.ghic-checked){ text-decoration: line-through; } + .dropdown-item.ghic-has-content:not(.ghic-checked){ text-decoration:line-through; } .ghic-button .dropdown-item.ghic-checked span { font-weight:bold; } .ghic-button .dropdown-item.ghic-checked svg, .ghic-button .dropdown-item:not(.ghic-checked) .ghic-count { display:inline-block; } From 4c22aa1253de06449eabb8a7f210751f9569f4c7 Mon Sep 17 00:00:00 2001 From: darkred Date: Thu, 4 Oct 2018 20:54:55 +0300 Subject: [PATCH 3/3] Update github-issue-comments.user.js - Fixed the selector to also apply to applied filters that have no content. - Also, changed the position of the rule, to maintain the existing order of the CSS rules --- github-issue-comments.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-issue-comments.user.js b/github-issue-comments.user.js index 3a531e9..fd0a3d6 100644 --- a/github-issue-comments.user.js +++ b/github-issue-comments.user.js @@ -31,10 +31,10 @@ .ghic-button .dropdown-item { font-weight:normal; position:relative; } .ghic-button .dropdown-item span { font-weight:normal; opacity:.5; } .ghic-button .dropdown-item.ghic-has-content span { opacity:1; } - .dropdown-item.ghic-has-content:not(.ghic-checked){ text-decoration:line-through; } .ghic-button .dropdown-item.ghic-checked span { font-weight:bold; } .ghic-button .dropdown-item.ghic-checked svg, .ghic-button .dropdown-item:not(.ghic-checked) .ghic-count { display:inline-block; } + .ghic-button .dropdown-item:not(.ghic-checked) { text-decoration:line-through; } .ghic-button .ghic-count { margin-left:5px; } .ghic-button .select-menu-modal { margin:0; } .ghic-button .ghic-participants { margin-bottom:20px; }