A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
/* SPDX-License-Identifier: AGPL-3.0-or-later */
.mediaContainer {
display: flex;
height: 100%;
width: 100%;
align-items: center;
justify-content: center;
}
.mediaContextMenuWrapper {
position: relative;
display: flex;
width: 100%;
height: 100%;
align-items: center;
justify-content: center;
min-width: 0;
min-height: 0;
pointer-events: none;
}
.placeholder {
position: absolute;
inset: 0;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
color: rgb(255 255 255 / 0.9);
pointer-events: none;
}
.imagePending {
opacity: 0;
}
.audioPlayerContainer {
width: 100%;
max-width: 42rem;
padding: 0 2rem;
pointer-events: auto;
}
.audioPlayer {
width: 100%;
}
.videoPlayerContainer {
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
min-height: 0;
pointer-events: auto;
width: min(
var(--video-natural-width, 60rem),
var(--media-fit-max-width, 100%),
calc(var(--media-fit-max-height, 100%) * var(--video-aspect-ratio, 1.778))
);
max-width: var(--media-fit-max-width, 100%);
max-height: var(--media-fit-max-height, 100%);
}
.videoPlayer {
width: 100%;
height: 100%;
}
@media (max-width: 768px) {
.videoPlayer {
border-radius: 0;
}
}
.gifvImage {
max-width: var(--media-fit-max-width, 100%);
max-height: var(--media-fit-max-height, 100%);
user-select: none;
-webkit-user-select: none;
object-fit: contain;
}
.gifvVideo {
width: auto;
height: auto;
max-width: var(--media-fit-max-width, 100%);
max-height: var(--media-fit-max-height, 100%);
object-fit: contain;
}
.image {
max-width: var(--media-fit-max-width, 100%);
max-height: var(--media-fit-max-height, 100%);
user-select: none;
-webkit-user-select: none;
object-fit: contain;
}