mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:27:28 +08:00
FIX: top period chooser layout on mobile
This commit is contained in:
parent
33054a7ad3
commit
39de27a4b2
|
@ -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 New Issue
Block a user