Revert "fix(speaker-stats): responsiveness"
This reverts commit 4e3d5cf844
.
This commit is contained in:
parent
0d885a2167
commit
50619377d4
|
@ -31,13 +31,10 @@ const useStyles = makeStyles(theme => {
|
|||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
width: '100%'
|
||||
width: '100%',
|
||||
},
|
||||
searchSwitchContainerExpressionsOn: {
|
||||
width: '58.5%',
|
||||
[theme.breakpoints.down('750')]: {
|
||||
width: '100%'
|
||||
}
|
||||
width: '58.5%'
|
||||
},
|
||||
searchContainer: {
|
||||
width: '50%'
|
||||
|
@ -52,7 +49,7 @@ const SpeakerStats = () => {
|
|||
const { enableDisplayFacialExpressions } = useSelector(state => state['features/base/config']);
|
||||
const { showFacialExpressions } = useSelector(state => state['features/speaker-stats']);
|
||||
const { clientWidth } = useSelector(state => state['features/base/responsive-ui']);
|
||||
const displaySwitch = enableDisplayFacialExpressions && clientWidth > 600;
|
||||
const displaySwitch = enableDisplayFacialExpressions && clientWidth > 520;
|
||||
const dispatch = useDispatch();
|
||||
const classes = useStyles();
|
||||
|
||||
|
@ -65,10 +62,6 @@ const SpeakerStats = () => {
|
|||
}
|
||||
, [ dispatch ]);
|
||||
|
||||
useEffect(() => {
|
||||
showFacialExpressions && !displaySwitch && dispatch(toggleFacialExpressions());
|
||||
}, [ clientWidth ]);
|
||||
|
||||
useEffect(() => () => dispatch(resetSearchCriteria()), []);
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue