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>
<ul class="topics">
<MountWidget
@widget="search-result-topic"
@args={{hash results=this.message.similarTopics}}
/>
{{#each this.message.similarTopics as |topic|}}
<div class="similar-topic">
<SearchMenu::Results::Type::Topic @result={{topic}} />
</div>
{{/each}}
</ul>

View File

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