From 0b648f4b18b4e0f9e5f743dfcd94be3e090815cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 30 Jul 2014 17:39:53 +0200 Subject: [PATCH] FIX: make sure the quote-reply button is never squished on mobile --- .../javascripts/discourse/controllers/quote-button.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/quote-button.js.es6 b/app/assets/javascripts/discourse/controllers/quote-button.js.es6 index 4aa7c0a73..6bdb8da0b 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; }