mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-09 11:48:47 +00:00
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
|
<div
|
||||||
id="related-topics"
|
id="related-topics"
|
||||||
class="more-content-topics {{if this.hidden 'hidden'}}"
|
class="more-topics__list {{if this.hidden 'hidden'}}"
|
||||||
role="complementary"
|
role="complementary"
|
||||||
aria-labelledby="related-topics-title"
|
aria-labelledby="related-topics-title"
|
||||||
data-mobile-title={{i18n "discourse_ai.related_topics.pill"}}
|
data-mobile-title={{i18n "discourse_ai.related_topics.pill"}}
|
||||||
data-list-id={{this.listId}}
|
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"}}
|
{{i18n "discourse_ai.related_topics.title"}}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="topics">
|
<div class="topics">
|
||||||
|
@ -15,10 +15,7 @@ export default class extends Component {
|
|||||||
|
|
||||||
@computed("moreTopicsPreferenceTracking.preference")
|
@computed("moreTopicsPreferenceTracking.preference")
|
||||||
get hidden() {
|
get hidden() {
|
||||||
return (
|
return this.moreTopicsPreferenceTracking.preference !== this.listId;
|
||||||
this.site.mobileView &&
|
|
||||||
this.moreTopicsPreferenceTracking.preference !== this.listId
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get relatedTopics() {
|
get relatedTopics() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user