Skip to content

armgit / ente

Public Imported from GitHub
0

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

Tried tr

Manav Rathifc480e8ce6fe
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index 9228075ee5..3830617c70 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -1257,8 +1257,6 @@ const hlsVideoHTML = (url: string, mediaControllerID: string) => `
* To make these functional, the `media-control-bar` requires the
* `mediacontroller="${mediaControllerID}"` attribute.
*
- * TODO(HLS): Tooltips get clipped
- * TODO(HLS): Translation
* TODO(HLS): Spurious console warning
*
* Notes:
@@ -1269,6 +1267,15 @@ const hlsVideoHTML = (url: string, mediaControllerID: string) => `
* indicator (browser specific) in the in-page video element.
*
* - The media-cast-button currently doesn't work with the `hls-video` player.
+ *
+ * - Media chrome has mechanism for statically providing translations but it
+ * wasn't working when I tried with 4.9.0. The media chrome tooltips also get
+ * clipped for the cornermost buttons. Finally, the rest of the buttons on
+ * this screen don't have a tooltip either.
+ *
+ * Revisit this when we have a custom tooltip element we can then also use on
+ * this screen, which can also be used enhancement for the other buttons on
+ * this screen which use "title" (which get clipped when they are multi-word).
*/
const hlsVideoControlsHTML = () => `
<div>
@@ -1287,15 +1294,15 @@ const hlsVideoControlsHTML = () => `
<media-time-range></media-time-range>
</media-control-bar>
<media-control-bar>
- <media-play-button></media-play-button>
- <media-mute-button></media-mute-button>
+ <media-play-button notooltip></media-play-button>
+ <media-mute-button notooltip></media-mute-button>
<media-time-display showduration notoggle></media-time-display>
<media-text-display></media-text-display>
<media-settings-menu-button id="et-settings-menu-btn" invoketarget="et-settings-menu" notooltip>
<svg slot="icon" viewBox="0 0 24 24">${settingsSVGPath}</svg>
</media-settings-menu-button>
- <media-pip-button></media-pip-button>
- <media-fullscreen-button></media-fullscreen-button>
+ <media-pip-button notooltip></media-pip-button>
+ <media-fullscreen-button notooltip></media-fullscreen-button>
</media-control-bar>
</div>
`;
diff --git a/web/packages/gallery/package.json b/web/packages/gallery/package.json
index c9a87b6ba3..c7a9ba0a4f 100644
--- a/web/packages/gallery/package.json
+++ b/web/packages/gallery/package.json
@@ -11,7 +11,7 @@
"hls-video-element": "^1.5.0",
"leaflet": "^1.9.4",
"leaflet-defaulticon-compatibility": "^0.1.2",
- "media-chrome": "^4.8.0",
+ "media-chrome": "^4.9.0",
"photoswipe": "^5.4.4",
"react-dropzone": "14.2.10"
},
diff --git a/web/yarn.lock b/web/yarn.lock
index 997ce4d01f..50abd1b02e 100644
--- a/web/yarn.lock
+++ b/web/yarn.lock
@@ -2884,10 +2884,10 @@ math-intrinsics@^1.1.0:
resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9"
integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==
-media-chrome@^4.8.0:
- version "4.8.0"
- resolved "https://registry.yarnpkg.com/media-chrome/-/media-chrome-4.8.0.tgz#ff881a5466fe02ad07344a370a8a1106988ca245"
- integrity sha512-oioEGlluW+1RqknqsszrKHDs3NZ9AaatEaE2kYYOSWxnwvVmhRTfDWT4JeMgtUr5r3i2dAI3e/qbeb1j+a0MhA==
+media-chrome@^4.9.0:
+ version "4.9.0"
+ resolved "https://registry.yarnpkg.com/media-chrome/-/media-chrome-4.9.0.tgz#05f692781234dfb02baf1bdbc578af62b7edeeb7"
+ integrity sha512-KSGZUDEt0vg0Ogx+B8YYj0O32l0ppPLR8s5rXBMOEpkLYbJrKfhSPfwTmjJGcp2Nf3F/X2ddwO96YvUXHYeYvw==
dependencies:
ce-la-react "^0.1.3"