Minor bug report in hiding "0 votes" from topic list

Right, when hidden with CSS it’s still counted as a child because it still exists in the HTML.

CSS can mostly handle this now (with Firefox being the exception because it doesn’t yet support :has)… It’s probably worth adding a proper “hide 0 votes on topic list” option to the plugin to avoid the issue entirely… but for now this will work.

.vote-count-0 {
  display: none; // hide 0 vote count
}

.discourse-tags:has(.vote-count-0) { 
  .discourse-tag:nth-last-child(2):after {
     display: none; // hide the comma on the second to last tag
  }
}
1 Like