From 19cb05661d2680dad5f9c3bd919644c717412ed8 Mon Sep 17 00:00:00 2001 From: Jordan Vidrine <30537603+jordanvidrine@users.noreply.github.com> Date: Mon, 19 Apr 2021 16:24:17 -0500 Subject: [PATCH] FEATURE: Topic count in category boxes (#12756) * FEARTURE: Also add outlet to featured topic category boxes --- .../templates/components/categories-boxes-with-topics.hbs | 1 + app/assets/stylesheets/common/base/category-list.scss | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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}} {{/unless}} + {{plugin-outlet name="category-box-below-each-category" connectorTagName="" tagName="" args=(hash category=c)}} {{/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;