mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
better positioning on mobile devices
This commit is contained in:
parent
8cf7e614d9
commit
b83f430ef0
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue