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>
|
</template>
|
||||||
|
|
||||||
@service dialog;
|
@service dialog;
|
||||||
@service site;
|
|
||||||
@service siteSettings;
|
@service siteSettings;
|
||||||
@service composer;
|
@service composer;
|
||||||
@tracked loading = false;
|
@tracked loading = false;
|
||||||
|
@ -106,7 +105,7 @@ export default class AISuggestionDropdown extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.args.mode === this.SUGGESTION_TYPES.category) {
|
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);
|
composer.set("categoryId", selectedCategoryId);
|
||||||
return this.#closeMenu();
|
return this.#closeMenu();
|
||||||
}
|
}
|
||||||
|
|
|
@ -205,7 +205,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
right: 1px;
|
right: 1px;
|
||||||
background: none;
|
background: var(--secondary);
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue