A platform for community discussion. Free, open, simple.
UX: Show fast edit at top of window on mobile (#21590)
Keegan George515529cd34c1
diff --git a/app/assets/javascripts/discourse/app/components/quote-button.js b/app/assets/javascripts/discourse/app/components/quote-button.jsindex 71ce8fb3837..54a18f8e8dc 100644--- a/app/assets/javascripts/discourse/app/components/quote-button.js+++ b/app/assets/javascripts/discourse/app/components/quote-button.js@@ -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;