move picker at top of the screen on mobile
This commit is contained in:
parent
e5d81597b6
commit
8cf7e614d9
|
@ -333,9 +333,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 ? -(this.$(window).width() - 10)/2 : -170,
|
||||||
marginTop: -150,
|
marginTop: this.site.isMobileDevice ? 10 : -150,
|
||||||
left: "50%",
|
left: "50%",
|
||||||
top: "50%"
|
top: this.site.isMobileDevice ? 0 : "50%"
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$modal.removeClass("fadeIn");
|
$modal.removeClass("fadeIn");
|
||||||
|
|
Loading…
Reference in New Issue