Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

two line

Manav Rathibfd9a0d760ac
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.css
index 46ee32303b..2d364493f2 100644
--- a/web/apps/photos/src/styles/photoswipe.css
+++ b/web/apps/photos/src/styles/photoswipe.css
@@ -200,9 +200,9 @@
*/
.pswp-ente .pswp__media-controls {
position: absolute;
- bottom: 4px;
- left: 4px;
- right: 4px;
+ bottom: 0px;
+ left: 0px;
+ right: 0px;
/* Similar to our other controls */
--media-icon-color: rgba(255 255 255 / 0.8);
@@ -222,6 +222,23 @@ media-control-bar:not([mediacontroller]) {
display: none;
}
+media-control-bar {
+ padding-inline: 4px;
+}
+
+media-control-bar:not(:first-child) {
+ /* Background color the padding around the controls. Color is same as the
+ --media-secondary-color that (transitively) gets used as the default
+ background for the media chrome controls. */
+ background-color: rgba(20 20 30 / 0.7);
+ /** Reset the default background since we now provide our own. */
+ --media-control-background: transparent;
+}
+
+media-control-bar:last-child {
+ padding-block-end: 4px;
+}
+
media-loading-indicator {
/* Similar to the top bar loading indicator */
--media-icon-color: rgba(255 255 255 / 0.6);
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index 15903adc7e..35975a8e17 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -1179,8 +1179,8 @@ const hlsVideoControlsHTML = () => `
<media-control-bar>
<media-play-button></media-play-button>
<media-mute-button></media-mute-button>
- <media-text-display></media-text-display>
<media-time-display showduration notoggle></media-time-display>
+ <media-text-display></media-text-display>
<media-pip-button></media-pip-button>
<media-airplay-button></media-airplay-button>
<media-fullscreen-button></media-fullscreen-button>