mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
better positioning on mobile devices
This commit is contained in:
parent
8cf7e614d9
commit
b83f430ef0
@ -332,9 +332,9 @@ export default Ember.Component.extend({
|
|||||||
|
|
||||||
$picker.css({
|
$picker.css({
|
||||||
width: this.site.isMobileDevice ? this.$(window).width() - 10 : 340,
|
width: this.site.isMobileDevice ? this.$(window).width() - 10 : 340,
|
||||||
marginLeft: this.site.isMobileDevice ? -(this.$(window).width() - 10)/2 : -170,
|
marginLeft: this.site.isMobileDevice ? 5 : -170,
|
||||||
marginTop: this.site.isMobileDevice ? 10 : -150,
|
marginTop: this.site.isMobileDevice ? 5 : -150,
|
||||||
left: "50%",
|
left: this.site.isMobileDevice ? 0 : "50%",
|
||||||
top: this.site.isMobileDevice ? 0 : "50%"
|
top: this.site.isMobileDevice ? 0 : "50%"
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user