UX: Pill design is the default on both mobile and desktop (#142)
This commit is contained in:
parent
3e46250f3f
commit
c0415bb7eb
|
@ -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">
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue