A platform for community discussion. Free, open, simple.
UX: make category topic counts clickable on mobile (#10541)
Kane Yorka51db9a7bf45
diff --git a/app/assets/javascripts/discourse/app/templates/mobile/components/parent-category-row.hbs b/app/assets/javascripts/discourse/app/templates/mobile/components/parent-category-row.hbsindex 9c3c3ae746d..7e1e3e66426 100644--- a/app/assets/javascripts/discourse/app/templates/mobile/components/parent-category-row.hbs+++ b/app/assets/javascripts/discourse/app/templates/mobile/components/parent-category-row.hbs@@ -39,21 +39,27 @@{{/if}}</tbody></table>- <footer class="clearfix">+ <footer class="clearfix category-topics-count"><figure title={{i18n "all_time_desc"}}>- {{number category.topics_all_time}}- <figcaption>{{i18n "all_time"}}</figcaption>+ <a href={{category.url}}>+ {{number category.topics_all_time}}+ <figcaption>{{i18n "all_time"}}</figcaption>+ </a></figure>{{#if category.pickMonth}}<figure title={{i18n "month_desc"}}>- {{number category.topics_month}}- <figcaption>/ {{i18n "month"}}</figcaption>+ <a href={{category.url}}>+ {{number category.topics_month}}+ <figcaption>/ {{i18n "month"}}</figcaption>+ </a></figure>{{/if}}{{#if category.pickWeek}}<figure title={{i18n "week_desc"}}>- {{number category.topics_week}}- <figcaption>/ {{i18n "week"}}</figcaption>+ <a href={{category.url}}>+ {{number category.topics_week}}+ <figcaption>/ {{i18n "week"}}</figcaption>+ </a></figure>{{/if}}</footer>diff --git a/app/assets/stylesheets/mobile/topic-list.scss b/app/assets/stylesheets/mobile/topic-list.scssindex 7754b136155..9e71af85256 100644--- a/app/assets/stylesheets/mobile/topic-list.scss+++ b/app/assets/stylesheets/mobile/topic-list.scss@@ -409,6 +409,10 @@ tr.category-topic-link {}}+.category-topics-count a {+ color: var(--primary);+}+.topic-list-bottom {margin: 20px 0 0 0;}