π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
More robust hiding
Manav Rathica83e781dde7
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.cssindex 6d82fbc1d5..64d625d805 100644--- a/web/apps/photos/src/styles/photoswipe.css+++ b/web/apps/photos/src/styles/photoswipe.css@@ -353,7 +353,11 @@ media-settings-menu {/* Hide the caption when hovering over the video controls (and when the settingsmenu is open) since they occupy similar real estate as the caption. */-body:has(media-control-bar:hover, media-settings-menu:not([hidden])) {+body:has(+ media-control-bar:hover,+ media-controller:not([mediapaused]),+ media-settings-menu:not([hidden])+ ) {& .pswp-ente .pswp__caption {display: none;}diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.tsindex 132fa84b4b..beaa3bfa4d 100644--- a/web/packages/gallery/components/viewer/photoswipe.ts+++ b/web/packages/gallery/components/viewer/photoswipe.ts@@ -731,7 +731,8 @@ export class FileViewerPhotoSwipe {if (videoVideoEl) {onVideoPlayback = () => {- showIf(captionElement!, !!videoVideoEl?.paused);+ if (!showPlayerV2)+ showIf(captionElement!, !!videoVideoEl?.paused);};videoVideoEl.addEventListener("play", onVideoPlayback);@@ -761,13 +762,15 @@ export class FileViewerPhotoSwipe {* the current slide.*/const videoToggleMuteIfPossible = () => {- const video = videoVideoEl;- if (!video) return;+ // TODO(HLS): Temporary gate+ if (!showPlayerV2) {+ const video = videoVideoEl;+ if (!video) return;- video.muted = !video.muted;+ video.muted = !video.muted;- // TODO(HLS): Temporary gate- if (!showPlayerV2) return;+ return;+ }// Go via the media chrome mute button when muting, because// otherwise the local storage that the media chrome internally