mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -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 ($(e.target).closest('.period-popup').length) { return; }
|
||||||
|
|
||||||
if (!this.get('showPeriods')) {
|
if (!this.get('showPeriods')) {
|
||||||
const $chevron = this.$('i.fa-caret-down');
|
if (!this.site.mobileView) {
|
||||||
this.$('#period-popup').css($chevron.position());
|
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.set('showPeriods', true);
|
||||||
this._clickToClose();
|
this._clickToClose();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue