fix(speaker-stats): Fix stats search position on narrow screens

This commit is contained in:
Vlad Piersec 2021-11-17 09:46:12 +02:00 committed by vp8x8
parent d84ba85f58
commit 1106e71f03
1 changed files with 8 additions and 2 deletions

View File

@ -9,12 +9,18 @@ import { useSelector } from 'react-redux';
import { getFieldValue } from '../../base/react'; import { getFieldValue } from '../../base/react';
import { isSpeakerStatsSearchDisabled } from '../functions'; import { isSpeakerStatsSearchDisabled } from '../functions';
const useStyles = makeStyles(() => { const useStyles = makeStyles(theme => {
return { return {
speakerStatsSearch: { speakerStatsSearch: {
position: 'absolute', position: 'absolute',
right: '80px', right: '80px',
top: '8px' top: '8px',
[theme.breakpoints.down('400')]: {
left: 20,
right: 0,
top: 42
}
} }
}; };
}); });