Compare commits

...

1 Commits

Author SHA1 Message Date
Horatiu Muresan e996fe638f fix(virtual-background) Fix virtual backgrounds list 2022-07-12 10:33:07 +03:00
1 changed files with 15 additions and 3 deletions

View File

@ -117,7 +117,12 @@ const VirtualBackgroundDialog = translate(connect(_mapStateToProps)(VirtualBackg
const useStyles = makeStyles(theme => { const useStyles = makeStyles(theme => {
return { return {
container: {
display: 'flex',
flexDirection: 'column'
},
dialog: { dialog: {
alignSelf: 'flex-start',
marginLeft: '-10px', marginLeft: '-10px',
position: 'relative', position: 'relative',
maxHeight: '300px', maxHeight: '300px',
@ -205,10 +210,11 @@ const useStyles = makeStyles(theme => {
left: '51px' left: '51px'
} }
}, },
'@media (max-width: 360px)': { '@media (max-width: 720px)': {
gridTemplateColumns: 'auto auto auto' gridTemplateColumns: 'auto auto auto auto'
}, },
'@media (max-width: 632px)': { '@media (max-width: 632px)': {
gridTemplateColumns: 'auto auto auto auto auto',
fontSize: '1.5vw', fontSize: '1.5vw',
[[ '& .desktop-share:hover', [[ '& .desktop-share:hover',
@ -236,6 +242,12 @@ const useStyles = makeStyles(theme => {
height: '60px', height: '60px',
width: '60px' width: '60px'
} }
},
'@media (max-width: 360px)': {
gridTemplateColumns: 'auto auto auto auto'
},
'@media (max-width: 319px)': {
gridTemplateColumns: 'auto auto'
} }
}, },
dialogMarginTop: { dialogMarginTop: {
@ -538,7 +550,7 @@ function VirtualBackground({
size = 'medium' /> size = 'medium' />
</div> </div>
) : ( ) : (
<div> <div className = { classes.container }>
{_showUploadButton {_showUploadButton
&& <UploadImageButton && <UploadImageButton
setLoading = { setLoading } setLoading = { setLoading }