CSS for vids

This commit is contained in:
Manav Rathi
2025-02-12 15:55:46 +05:30
parent 0883fe1d05
commit aa27191ddc
2 changed files with 10 additions and 1 deletions

View File

@@ -115,3 +115,12 @@ body {
display: none;
}
}
/*
Make the controllable video elements we render as custom PhotoSwipe content
take up the entire container.
*/
.pswp-ente video[controls] {
width: 100%;
height: 100%;
}

View File

@@ -189,7 +189,7 @@ export class FileViewerPhotoSwipe {
index: initialIndex,
// TODO(PS): padding option? for handling custom title bar.
// TODO(PS): will we need this?
mainClass: "our-extra-pswp-main-class",
mainClass: "pswp-ente",
});
// Provide data about slides to PhotoSwipe via callbacks