Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

CSS for vids

Manav Rathiaa27191ddcc7
diff --git a/web/apps/photos/src/styles/global.css b/web/apps/photos/src/styles/global.css
index a83e359b88..77583e306f 100644
--- a/web/apps/photos/src/styles/global.css
+++ b/web/apps/photos/src/styles/global.css
@@ -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%;
+}
diff --git a/web/packages/new/photos/components/FileViewerPhotoSwipe.ts b/web/packages/new/photos/components/FileViewerPhotoSwipe.ts
index 8f0b464351..278259509e 100644
--- a/web/packages/new/photos/components/FileViewerPhotoSwipe.ts
+++ b/web/packages/new/photos/components/FileViewerPhotoSwipe.ts
@@ -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