π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Trim
Manav Rathi2187b3ec6e6f
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.cssindex a1ad7edb33..bb4ca78802 100644--- a/web/apps/photos/src/styles/photoswipe.css+++ b/web/apps/photos/src/styles/photoswipe.css@@ -192,27 +192,13 @@/*Style the custom video controls we provide.- - Center fit the video within the PhotoSwipe slide contents, but also ensuring- it doesn't overflow.- - Assumes that the slide's item data is specifying the width and height of the- video.- - The controls are absolutely position at the bottom of the screen instead of- being attached to the video.- */-.pswp-ente .media-controller-container {- max-width: 100%;- max-height: 100%;- display: flex;- justify-content: center;- align-items: center;-}+ The media-controller itself is center positioned (shrinking if needed) by+ PhotoSwipe using the width and height of the video that we provide to it.-.pswp-ente .media-controller-container media-controller {- max-width: 100%;- max-height: 100%;-}--.pswp-ente .media-controller-container media-control-bar {+ The controls are absolutely position at the bottom of the screen instead of+ being attached to the video.+ */+.pswp-ente .pswp__media-controls {position: absolute;bottom: 0;left: 0;diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.tsindex 57f12344c2..9d5f1457de 100644--- a/web/packages/gallery/components/viewer/photoswipe.ts+++ b/web/packages/gallery/components/viewer/photoswipe.ts@@ -1138,13 +1138,12 @@ const videoHTML = (url: string, disableDownload: boolean) => `// import "hls-video-element";// import "media-chrome";//-// TODO: Update code above that searches for the video element+// TODO(HLS): Update code above that searches for the video element+// TODO(HLS): Initial slide needs to be resynced cf playsinlineconst hlsVideoHTML = (url: string, mediaControllerID: string) => `-<div class="media-controller-container">- <media-controller id="${mediaControllerID}">- <hls-video playsinline slot="media" src="${url}"></hls-video>- </media-controller>-</div>+<media-controller id="${mediaControllerID}">+ <hls-video playsinline slot="media" src="${url}"></hls-video>+</media-controller>`;/**