mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 22:34:27 +08: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({
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user