fix(prejoin): Align avatar image on small screens (#7300)

Fixes: #7296
This commit is contained in:
vp8x8 2020-07-15 11:43:00 +03:00 committed by GitHub
parent e34c5673b2
commit 1891ce0b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 6 deletions

View File

@ -197,9 +197,16 @@
text-align: center;
}
.preview-avatar-container {
width: 100%;
height: 80%;
display: flex;
align-items: center;
justify-content: center;
}
.avatar {
background: #A4B8D1;
margin: 200px auto 0 auto;
}
video {

View File

@ -54,11 +54,13 @@ function Preview(props: Props) {
<div
className = 'no-video'
id = 'preview'>
<Avatar
className = 'preview-avatar'
displayName = { name }
participantId = 'local'
size = { 200 } />
<div className = 'preview-avatar-container'>
<Avatar
className = 'preview-avatar'
displayName = { name }
participantId = 'local'
size = { 200 } />
</div>
</div>
);
}