better positioning on mobile devices

This commit is contained in:
Joffrey JAFFEUX 2017-07-19 12:57:52 +02:00
parent 8cf7e614d9
commit b83f430ef0
1 changed files with 3 additions and 3 deletions

View File

@ -332,9 +332,9 @@ export default Ember.Component.extend({
$picker.css({
width: this.site.isMobileDevice ? this.$(window).width() - 10 : 340,
marginLeft: this.site.isMobileDevice ? -(this.$(window).width() - 10)/2 : -170,
marginTop: this.site.isMobileDevice ? 10 : -150,
left: "50%",
marginLeft: this.site.isMobileDevice ? 5 : -170,
marginTop: this.site.isMobileDevice ? 5 : -150,
left: this.site.isMobileDevice ? 0 : "50%",
top: this.site.isMobileDevice ? 0 : "50%"
});
} else {