Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

vp8x81891ce0b24df
diff --git a/css/_premeeting-screens.scss b/css/_premeeting-screens.scss
index 7f490b867b..71b14ae3c2 100644
--- a/css/_premeeting-screens.scss
+++ b/css/_premeeting-screens.scss
@@ -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 {
diff --git a/react/features/base/premeeting/components/web/Preview.js b/react/features/base/premeeting/components/web/Preview.js
index 43d1ad71c4..7dae4675e3 100644
--- a/react/features/base/premeeting/components/web/Preview.js
+++ b/react/features/base/premeeting/components/web/Preview.js
@@ -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>
);
}