UX: Pill design is the default on both mobile and desktop (#142)

This commit is contained in:
Roman Rizzi 2023-08-17 14:37:14 -03:00 committed by GitHub
parent 3e46250f3f
commit c0415bb7eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View File

@ -1,12 +1,12 @@
<div
id="related-topics"
class="more-content-topics {{if this.hidden 'hidden'}}"
class="more-topics__list {{if this.hidden 'hidden'}}"
role="complementary"
aria-labelledby="related-topics-title"
data-mobile-title={{i18n "discourse_ai.related_topics.pill"}}
data-list-id={{this.listId}}
>
<h3 id="related-topics-title" class="more-topics-title">
<h3 id="related-topics-title" class="more-topics__list-title">
{{i18n "discourse_ai.related_topics.title"}}
</h3>
<div class="topics">

View File

@ -15,10 +15,7 @@ export default class extends Component {
@computed("moreTopicsPreferenceTracking.preference")
get hidden() {
return (
this.site.mobileView &&
this.moreTopicsPreferenceTracking.preference !== this.listId
);
return this.moreTopicsPreferenceTracking.preference !== this.listId;
}
get relatedTopics() {