π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
More controls
Manav Rathiacad6895e866
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.cssindex 7bcd8628a9..846c92de0b 100644--- a/web/apps/photos/src/styles/photoswipe.css+++ b/web/apps/photos/src/styles/photoswipe.css@@ -200,8 +200,21 @@*/.pswp-ente .pswp__media-controls {position: absolute;- bottom: 0;- left: 0;+ bottom: 4px;+ left: 4px;+ right: 4px;++ /* Similar to our other controls */+ --media-icon-color: rgba(255 255 255 / 0.8);+ --media-font-family: Inter Variable, sans-serif;+}++.pswp-ente .pswp__media-controls media-control-bar {+ /*+ The control-bar sizes to fit the media controller (which itself fills up+ the full width), but since we're showing the control bar outside of the+ media controller, we need to ask it to fill the available width ourselves.+ */width: 100%;}@@ -209,3 +222,13 @@.pswp-ente .pswp__media-controls media-control-bar:not([mediacontroller]) {display: none;}++/*+ Hide specific controls when the user's browser doesn't support the feature+ they trigger.+ */+media-pip-button[mediapipunavailable],+media-airplay-button[mediaairplayunavailable],+media-fullscreen-button[mediafullscreenunavailable] {+ display: none;+}diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.tsindex 8e68e1ef60..09aa216944 100644--- a/web/packages/gallery/components/viewer/photoswipe.ts+++ b/web/packages/gallery/components/viewer/photoswipe.ts@@ -1168,7 +1168,9 @@ const hlsVideoControlsHTML = () => `<media-play-button></media-play-button><media-mute-button></media-mute-button><media-time-range></media-time-range>- <media-time-display></media-time-display>+ <media-time-display showduration notoggle></media-time-display>+ <media-pip-button></media-pip-button>+ <media-airplay-button></media-airplay-button><media-fullscreen-button></media-fullscreen-button></media-control-bar>`;