diff --git a/app/assets/javascripts/discourse/controllers/quote-button.js.es6 b/app/assets/javascripts/discourse/controllers/quote-button.js.es6 index 4aa7c0a734d..6bdb8da0b14 100644 --- a/app/assets/javascripts/discourse/controllers/quote-button.js.es6 +++ b/app/assets/javascripts/discourse/controllers/quote-button.js.es6 @@ -87,7 +87,7 @@ export default Discourse.Controller.extend({ if (Discourse.Mobile.isMobileDevice) { top = top + 20; - left = left + 10; + left = Math.min(left + 10, $(window).width() - $quoteButton.outerWidth()); } else { top = top - $quoteButton.outerHeight() - 5; }