mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: top period chooser layout on mobile
This commit is contained in:
parent
33054a7ad3
commit
39de27a4b2
1 changed files with 6 additions and 2 deletions
|
@ -24,8 +24,12 @@ export default Ember.Component.extend(CleansUp, {
|
|||
if ($(e.target).closest('.period-popup').length) { return; }
|
||||
|
||||
if (!this.get('showPeriods')) {
|
||||
const $chevron = this.$('i.fa-caret-down');
|
||||
this.$('#period-popup').css($chevron.position());
|
||||
if (!this.site.mobileView) {
|
||||
const $chevron = this.$('i.fa-caret-down');
|
||||
this.$('#period-popup').css($chevron.position());
|
||||
} else {
|
||||
this.$('#period-popup').css({top: this.$().height()});
|
||||
}
|
||||
this.set('showPeriods', true);
|
||||
this._clickToClose();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue