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

**URL:** https://meta.discourse.org/t/minor-bug-report-in-hiding-0-votes-from-topic-list/213309
**Category:** UX
**Tags:** topic-voting
**Created:** [December 28, 2021, 6:02pm UTC](https://meta.discourse.org/t/minor-bug-report-in-hiding-0-votes-from-topic-list/213309 "2021-12-28T18:02:14Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [April 10, 2023, 5:12pm UTC](https://meta.discourse.org/t/minor-bug-report-in-hiding-0-votes-from-topic-list/213309/5 "2023-04-10T17:12:18Z")

</div>

> [@mattdm](#):
>
> and the vote count is still a child even when hidden, I guess.

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.

```scss
.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
  }
}

```

---

_[View the full topic](https://meta.discourse.org/t/minor-bug-report-in-hiding-0-votes-from-topic-list/213309)._
