FIX: Similar topics relying on widget search menu (#25586)

This commit is contained in:
Isaac Janzen 2024-02-07 00:15:54 -07:00 committed by GitHub
parent f9789e974b
commit 32ee0e3c0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 37 additions and 33 deletions

View File

@ -3,8 +3,9 @@
<h3>{{i18n "composer.similar_topics"}}</h3> <h3>{{i18n "composer.similar_topics"}}</h3>
<ul class="topics"> <ul class="topics">
<MountWidget {{#each this.message.similarTopics as |topic|}}
@widget="search-result-topic" <div class="similar-topic">
@args={{hash results=this.message.similarTopics}} <SearchMenu::Results::Type::Topic @result={{topic}} />
/> </div>
{{/each}}
</ul> </ul>

View File

@ -187,6 +187,10 @@
.similar-topics { .similar-topics {
background-color: var(--tertiary-low); background-color: var(--tertiary-low);
.similar-topic {
margin-bottom: 0.5em;
}
a[href] { a[href] {
color: var(--primary); color: var(--primary);
} }
@ -195,7 +199,6 @@
background-color: var(--tertiary); background-color: var(--tertiary);
} }
.search-link {
.topic-title { .topic-title {
flex: 0 1 auto; flex: 0 1 auto;
margin-right: 0.5em; margin-right: 0.5em;
@ -208,6 +211,7 @@
} }
.topic-title, .topic-title,
.blurb { .blurb {
margin-bottom: 0.5em;
.d-icon { .d-icon {
color: var(--primary-high); color: var(--primary-high);
} }
@ -231,7 +235,6 @@
} }
} }
} }
}
} }
.composer-popup:nth-of-type(2) { .composer-popup:nth-of-type(2) {