UX: Show fast edit at top of window on mobile (#21590)

This commit is contained in:
Keegan George 2023-05-17 09:30:29 -07:00 committed by GitHub
parent 082821c754
commit 515529cd34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -378,11 +378,10 @@ export default Component.extend(KeyEnterEscape, {
schedule("afterRender", () => {
if (this.site.mobileView) {
this.element.style.left = `${
(window.innerWidth - this.element.clientWidth) / 2
}px`;
this.textRange = document.querySelector("#main-outlet");
this._popper?.update();
}
document.querySelector("#fast-edit-input")?.focus();
next(() => document.querySelector("#fast-edit-input")?.focus());
});
} else {
const postId = this.quoteState.postId;