From 5a6c3851325fe6831fd2972a62ffffb83a92e971 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Tue, 8 Apr 2025 14:55:30 +0530 Subject: [PATCH] Keep using ente- for the class/ids (et- makes more sense for temporary vars) --- web/apps/photos/src/styles/photoswipe.css | 2 +- web/packages/gallery/components/viewer/photoswipe.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.css index 952df18f36..dab66b79e6 100644 --- a/web/apps/photos/src/styles/photoswipe.css +++ b/web/apps/photos/src/styles/photoswipe.css @@ -222,7 +222,7 @@ Ref (not directly relevant, but a general direction): https://github.com/muxinc/media-elements/blob/main/packages/custom-media-element/custom-media-element.ts */ -.pswp-ente media-controller.et-vanilla-video { +.pswp-ente media-controller.ente-vanilla-video { display: inline; /* On Chrome (I didn't check elsewhere), when putting a regular video element diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts index c45c7e5fa7..a8a1a109c2 100644 --- a/web/packages/gallery/components/viewer/photoswipe.ts +++ b/web/packages/gallery/components/viewer/photoswipe.ts @@ -524,7 +524,7 @@ export class FileViewerPhotoSwipe { // TODO(HLS): Temporary gate if (!process.env.NEXT_PUBLIC_ENTE_WIP_VIDEO_STREAMING) return; - const qualityMenu = container?.querySelector("#et-quality-menu"); + const qualityMenu = container?.querySelector("#ente-quality-menu"); if (qualityMenu instanceof MediaChromeMenu) { const { videoPlaylistURL } = itemData; const value = videoPlaylistURL ? pt("Auto") : pt("Original"); @@ -1032,7 +1032,7 @@ export class FileViewerPhotoSwipe { html: hlsVideoControlsHTML(), onInit: (element, pswp) => { mediaControlsContainerElement = element; - const menu = element.querySelector("#et-quality-menu"); + const menu = element.querySelector("#ente-quality-menu"); if (menu instanceof MediaChromeMenu) { menu.addEventListener("change", onVideoQualityChange); } @@ -1430,7 +1430,7 @@ const hlsVideoHTML = (url: string, mediaControllerID: string) => ` `; const videoHTML = (url: string, mediaControllerID: string) => ` - + `; @@ -1470,10 +1470,10 @@ const videoHTML = (url: string, mediaControllerID: string) => ` */ const hlsVideoControlsHTML = () => `
-