Skip to content

A platform for community discussion. Free, open, simple.

FEATURE: Topic count in category boxes (#12756)

Jordan Vidrine19cb05661d26
diff --git a/app/assets/javascripts/discourse/app/templates/components/categories-boxes-with-topics.hbs b/app/assets/javascripts/discourse/app/templates/components/categories-boxes-with-topics.hbs
index 16861c98f0f..e22f84f4eaa 100644
--- a/app/assets/javascripts/discourse/app/templates/components/categories-boxes-with-topics.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/categories-boxes-with-topics.hbs
@@ -34,6 +34,7 @@
{{/if}}
</div>
{{/unless}}
+ {{plugin-outlet name="category-box-below-each-category" connectorTagName="" tagName="" args=(hash category=c)}}
</div>
</div>
{{/each}}
diff --git a/app/assets/stylesheets/common/base/category-list.scss b/app/assets/stylesheets/common/base/category-list.scss
index 73d1cfd1423..d45b6b3e8d9 100644
--- a/app/assets/stylesheets/common/base/category-list.scss
+++ b/app/assets/stylesheets/common/base/category-list.scss
@@ -80,7 +80,7 @@
.category-box-inner {
box-sizing: border-box;
width: 100%;
- padding: 0;
+ padding: 1em;
display: flex;
flex-direction: column;
@@ -248,7 +248,7 @@
}
.category-box-heading {
- padding: 1em 1em 0.5em 1em;
+ margin-bottom: 0.5em;
a[href] {
width: 100%;
color: var(--primary);
@@ -256,7 +256,7 @@
}
.featured-topics {
- padding: 0.5em 1em 1em 1em;
+ margin-bottom: 1em;
ul {
color: var(--primary-medium);
list-style: none;