mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-09 07:33:30 +00:00
UX: Prevent input text from covering suggestion button (#212)
This commit is contained in:
parent
0828254d61
commit
087be9f4da
@ -43,7 +43,6 @@ export default class AISuggestionDropdown extends Component {
|
||||
</template>
|
||||
|
||||
@service dialog;
|
||||
@service site;
|
||||
@service siteSettings;
|
||||
@service composer;
|
||||
@tracked loading = false;
|
||||
@ -106,7 +105,7 @@ export default class AISuggestionDropdown extends Component {
|
||||
}
|
||||
|
||||
if (this.args.mode === this.SUGGESTION_TYPES.category) {
|
||||
const selectedCategoryId = this.site.categories.find((c) => c.slug === suggestion).id;
|
||||
const selectedCategoryId = this.composer.categories.find((c) => c.slug === suggestion).id;
|
||||
composer.set("categoryId", selectedCategoryId);
|
||||
return this.#closeMenu();
|
||||
}
|
||||
|
@ -205,7 +205,7 @@
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
right: 1px;
|
||||
background: none;
|
||||
background: var(--secondary);
|
||||
border: none;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user