fix(overflow-drawer) Only use overflow drawer on mobile
This commit is contained in:
parent
e2beb2f3b1
commit
2e22eb5169
|
@ -1,5 +1,6 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
|
import { isMobileBrowser } from '../base/environment/utils';
|
||||||
import { getParticipantCountWithFake } from '../base/participants';
|
import { getParticipantCountWithFake } from '../base/participants';
|
||||||
import { StateListenerRegistry, equals } from '../base/redux';
|
import { StateListenerRegistry, equals } from '../base/redux';
|
||||||
import { clientResized } from '../base/responsive-ui';
|
import { clientResized } from '../base/responsive-ui';
|
||||||
|
@ -99,7 +100,9 @@ StateListenerRegistry.register(
|
||||||
StateListenerRegistry.register(
|
StateListenerRegistry.register(
|
||||||
/* selector */ state => state['features/base/responsive-ui'].clientWidth < DISPLAY_DRAWER_THRESHOLD,
|
/* selector */ state => state['features/base/responsive-ui'].clientWidth < DISPLAY_DRAWER_THRESHOLD,
|
||||||
/* listener */ (widthBelowThreshold, store) => {
|
/* listener */ (widthBelowThreshold, store) => {
|
||||||
store.dispatch(setOverflowDrawer(widthBelowThreshold));
|
if (isMobileBrowser()) {
|
||||||
|
store.dispatch(setOverflowDrawer(widthBelowThreshold));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue