Add crop to fit toggle to context menu. (#2107)

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo
2024-02-12 16:49:32 +01:00
committed by GitHub
parent 242d2dc2bc
commit bcd8890f0a
4 changed files with 38 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ borders don't support gradients */
.videoTile video {
inline-size: 100%;
block-size: 100%;
object-fit: cover;
object-fit: contain;
background-color: var(--cpd-color-bg-subtle-primary);
/* This transform is a no-op, but it forces Firefox to use a different
rendering path, one that actually clips the corners of <video> elements into
@@ -89,6 +89,10 @@ borders don't support gradients */
object-fit: contain;
}
.videoTile.cropVideo video {
object-fit: cover;
}
.videoTile.videoMuted video {
display: none;
}