Skip to content

armgit / ente

Public Imported from GitHub
0

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

more 2

Manav Rathi66f43a9c9a9c
diff --git a/web/packages/gallery/components/viewer/icons.tsx b/web/packages/gallery/components/viewer/icons.tsx
index 6481d0814c..3f98051fff 100644
--- a/web/packages/gallery/components/viewer/icons.tsx
+++ b/web/packages/gallery/components/viewer/icons.tsx
@@ -29,8 +29,11 @@ const paths = {
// "@mui/icons-material/FavoriteRounded"
unfavorite:
'<path d="M13.35 20.13c-.76.69-1.93.69-2.69-.01l-.11-.1C5.3 15.27 1.87 12.16 2 8.28c.06-1.7.93-3.33 2.34-4.29 2.64-1.8 5.9-.96 7.66 1.1 1.76-2.06 5.02-2.91 7.66-1.1 1.41.96 2.28 2.59 2.34 4.29.14 3.88-3.3 6.99-8.55 11.76z" transform="translate(3, 3)"',
+ // TODO(PS): Remove me
// "@mui/icons-material/MoreVert"
- more: '<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"',
+ moreV: '<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"',
+ // "@mui/icons-material/MoreHoriz"
+ more: '<path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2" transform="translate(3, 4)"',
};
/**
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index dee195aba8..3bac4f85a2 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -495,7 +495,8 @@ export class FileViewerPhotoSwipe {
onClick: withCurrentAnnotatedFile(onViewInfo),
});
- if (onEditImage) {
+ // TODO(PS):
+ if (onEditImage && false) {
pswp.ui.registerElement({
name: "edit",
// TODO(PS):
@@ -514,6 +515,17 @@ export class FileViewerPhotoSwipe {
),
});
}
+
+ pswp.ui.registerElement({
+ name: "more",
+ // TODO(PS):
+ title: pt("More"),
+ order: 17,
+ isButton: true,
+ html: createPSRegisterElementIconHTML("more"),
+ onClick: withCurrentAnnotatedFile(onViewInfo),
+ });
+
});
// Modify the default UI elements.