mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Merge pull request #9374 from jitsi/tavram/config-autohide-filmstrip
feat(api) allow filmstrip autohide to be configurable
This commit is contained in:
@@ -851,7 +851,10 @@ var config = {
|
||||
// 'toolbar.noisyAudioInputTitle', // shown when noise is detected for the current microphone
|
||||
// 'toolbar.talkWhileMutedPopup', // shown when user tries to speak while muted
|
||||
// 'transcribing.failedToStart' // shown when transcribing fails to start
|
||||
// ]
|
||||
// ],
|
||||
|
||||
// Automatically hides the filmstrip when screen width is under a certain threshold
|
||||
autohideFilmstrip: true,
|
||||
|
||||
// Allow all above example options to include a trailing comma and
|
||||
// prevent fear when commenting out the last value.
|
||||
|
||||
@@ -16,6 +16,7 @@ export default [
|
||||
'analytics.disabled',
|
||||
'audioLevelsInterval',
|
||||
'audioQuality',
|
||||
'autohideFilmstrip',
|
||||
'apiLogLevels',
|
||||
'avgRtpStatsN',
|
||||
'backgroundAlpha',
|
||||
|
||||
@@ -121,7 +121,12 @@ StateListenerRegistry.register(
|
||||
StateListenerRegistry.register(
|
||||
/* selector */ state => state['features/base/responsive-ui'].clientWidth < ASPECT_RATIO_BREAKPOINT,
|
||||
/* listener */ (widthBelowThreshold, store) => {
|
||||
store.dispatch(setFilmstripVisible(!widthBelowThreshold));
|
||||
const state = store.getState();
|
||||
const { autohideFilmstrip } = state['features/base/config'];
|
||||
|
||||
if (autohideFilmstrip) {
|
||||
store.dispatch(setFilmstripVisible(!widthBelowThreshold));
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user