A platform for community discussion. Free, open, simple.
FIX: show suggested topics tabs on mobile again (#38228)
Kris09bbde38d1ea
diff --git a/app/assets/stylesheets/common/components/more-topics.scss b/app/assets/stylesheets/common/components/more-topics.scssindex 5034a5bce53..11b0cf1656b 100644--- a/app/assets/stylesheets/common/components/more-topics.scss+++ b/app/assets/stylesheets/common/components/more-topics.scss@@ -53,7 +53,7 @@.more-topics__list {.topic-list-body {- border-top: none;+ border-top-width: 1px;}.topic-list-header:has(.nav-pills) {@@ -65,6 +65,21 @@}}}++ @include viewport.until(sm) {+ .topic-list-header.--has-tabs {+ display: flex;++ .nav-pills {+ margin: 0;+ border: none;+ }++ th:not(.default) {+ display: none;+ }+ }+ }}// Target the .badge-category text, the bullet icon needs to maintain `display: block`diff --git a/frontend/discourse/app/components/topic-list/list.gjs b/frontend/discourse/app/components/topic-list/list.gjsindex f78f4abd8b7..642d1d1a868 100644--- a/frontend/discourse/app/components/topic-list/list.gjs+++ b/frontend/discourse/app/components/topic-list/list.gjs@@ -34,6 +34,7 @@ export default class TopicList extends Component {@service currentUser;// eslint-disable-next-line discourse/no-unused-services@service topicTrackingState; // accessed via `self` variable+ @service moreTopicsTabs;@cachedget columns() {@@ -198,7 +199,12 @@ export default class TopicList extends Component {...attributes><caption class="sr-only">{{i18n "sr_topic_list_caption"}}</caption>- <thead class="topic-list-header">+ <thead+ class={{concatClass+ "topic-list-header"+ (if this.moreTopicsTabs.tabs.length "--has-tabs")+ }}+ ><Header@columns={{this.columns}}@canBulkSelect={{@canBulkSelect}}