Onderwerpen en ongelezen/nieuwe berichten verbergen in de categorie sectie

Thanks for responding @ondrej! That somewhat helps a bit.

Our layout looks similar to https://meta.discourse.org/categories but Im moving to use a more card design for categories. Using a display:none kind of works but, because the Categories is this huge table element. it still occupies space when there are Topics and/or unread/new messages. So you’ll this small white space gap of space occupied even with display: none.

I was able to find a solution but was hoping there was just a configuration option that would completely remove it.

My solution:

  • Set height on <tr> holding category/topic information such as height: 160px. Along with that property, set an overflow: hidden.
  • Set height on <td> holding category name to height of <tr>.
  • Set height of <td> holding topic to 0.

Definitely not best solution but worked for now.