Improving video CSS (work on overlay)

This commit is contained in:
David Négrier 2020-08-16 23:45:03 +02:00
parent 88c099fc13
commit 1509777945
2 changed files with 11 additions and 2 deletions

View File

@ -260,7 +260,7 @@ body {
} }
.sidebar > div { .sidebar > div {
height: 15%; max-height: 21%;
} }
} }
@media (max-aspect-ratio: 1/1) { @media (max-aspect-ratio: 1/1) {
@ -278,7 +278,7 @@ body {
} }
.sidebar > div { .sidebar > div {
width: 15%; max-width: 21%;
} }
} }
@ -342,6 +342,14 @@ body {
margin: 2%; margin: 2%;
} }
/* Let's make sure videos are vertically centered if they need to be cropped */
.media-container {
display: flex;
justify-content: center;
flex-direction: column;
overflow: hidden;
}
.chat-mode { .chat-mode {
display: flex; display: flex;
width: 100%; width: 100%;

View File

@ -28,6 +28,7 @@ class LayoutManager {
const div = document.createElement('div'); const div = document.createElement('div');
div.innerHTML = html; div.innerHTML = html;
div.id = "user-"+userId; div.id = "user-"+userId;
div.className = "media-container"
if (importance === DivImportance.Important) { if (importance === DivImportance.Important) {
this.importantDivs.set(userId, div); this.importantDivs.set(userId, div);