FIX: make sure the quote-reply button is never squished on mobile
This commit is contained in:
parent
5f620c5b98
commit
0b648f4b18
|
@ -87,7 +87,7 @@ export default Discourse.Controller.extend({
|
||||||
|
|
||||||
if (Discourse.Mobile.isMobileDevice) {
|
if (Discourse.Mobile.isMobileDevice) {
|
||||||
top = top + 20;
|
top = top + 20;
|
||||||
left = left + 10;
|
left = Math.min(left + 10, $(window).width() - $quoteButton.outerWidth());
|
||||||
} else {
|
} else {
|
||||||
top = top - $quoteButton.outerHeight() - 5;
|
top = top - $quoteButton.outerHeight() - 5;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue