Skip to content

armgit / ente

Public Imported from GitHub
0

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

id

Manav Rathi02a7024cdcec
diff --git a/web/packages/gallery/components/viewer/FileViewer.tsx b/web/packages/gallery/components/viewer/FileViewer.tsx
index 30821b1908..d5952add20 100644
--- a/web/packages/gallery/components/viewer/FileViewer.tsx
+++ b/web/packages/gallery/components/viewer/FileViewer.tsx
@@ -407,6 +407,11 @@ const FileViewer: React.FC<FileViewerProps> = ({
open={!!moreMenuAnchorEl}
onClose={handleMoreMenuClose}
anchorEl={moreMenuAnchorEl}
+ slotProps={{
+ list: {
+ "aria-labelledby": moreMenuAnchorEl?.id,
+ },
+ }}
>
Test
</Menu>
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index 8d60b8dbda..75a1b15c7f 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -617,6 +617,9 @@ export class FileViewerPhotoSwipe {
isButton: true,
html: createPSRegisterElementIconHTML("more"),
onClick: (e) => onMore(currentAnnotatedFile(), e.target),
+ onInit: (buttonElement) => {
+ buttonElement.id = "ente-pswp-show-more";
+ },
});
});