UX: Prevent input text from covering suggestion button (#212)

This commit is contained in:
Keegan George 2023-09-07 11:52:00 -07:00 committed by GitHub
parent 0828254d61
commit 087be9f4da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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();
}

View File

@ -205,7 +205,7 @@
position: absolute;
top: 1px;
right: 1px;
background: none;
background: var(--secondary);
border: none;
}