π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use
Manav Rathi4bbe71e1354e
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsxindex 3077cf341c..38e6805c5c 100644--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx@@ -1,6 +1,10 @@import { assertionFailed } from "@/base/assert";import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";import { SpaceBetweenFlex } from "@/base/components/mui/Container";+import {+ OverflowMenu,+ OverflowMenuOption,+} from "@/base/components/OverflowMenu";import { useModalVisibility } from "@/base/components/utils/modal";import type { Collection } from "@/media/collection";import { ItemVisibility } from "@/media/file-metadata";@@ -23,11 +27,7 @@ import {} from "@/new/photos/services/magic-metadata";import { useAppContext } from "@/new/photos/types/context";import { HorizontalFlex } from "@ente/shared/components/Container";-import {- OverflowMenu,- OverflowMenuOption,- StyledMenu,-} from "@ente/shared/components/OverflowMenu";+import { StyledMenu } from "@ente/shared/components/OverflowMenu";import ArchiveOutlined from "@mui/icons-material/ArchiveOutlined";import DeleteOutlinedIcon from "@mui/icons-material/DeleteOutlined";import EditIcon from "@mui/icons-material/Edit";@@ -330,7 +330,7 @@ const CollectionOptions: React.FC<CollectionOptionsProps> = ({/><OverflowMenu- ariaID={"collection-options"}+ ariaID="collection-options"triggerButtonIcon={<MoreHoriz ref={overFlowMenuIconRef} />}>{collectionSummaryType == "trash" ? (diff --git a/web/packages/base/components/OverflowMenu.tsx b/web/packages/base/components/OverflowMenu.tsxindex 7e032a45f2..4ba7e72206 100644--- a/web/packages/base/components/OverflowMenu.tsx+++ b/web/packages/base/components/OverflowMenu.tsx@@ -90,12 +90,16 @@ export const OverflowMenu: React.FC<};interface OverflowMenuOptionProps {+ /**+ * Called when the menu option is clicked.+ */+ onClick: () => void;/*** The color of the text and icons.** Default: "primary".*/- color?: "primary";+ color?: "primary" | "critical";/*** An optional icon to show at the leading edge of the menu option.*/@@ -104,10 +108,6 @@ interface OverflowMenuOptionProps {* An optional icon to show at the trailing edge of the menu option.*/endIcon?: React.ReactNode;- /**- * Called when the menu option is clicked.- */- onClick: () => void;}/**@@ -138,7 +138,14 @@ export const OverflowMenuOption: React.FC<><Stackdirection="row"- sx={{ gap: 1.5, alignItems: "center", width: "100%" }}+ sx={{+ gap: 1.5,+ alignItems: "center",+ // Fill our container.+ width: "100%",+ // MUI has responsive padding, use a static value instead.+ paddingBlock: 1,+ }}>{startIcon}<Typography sx={{ flex: 1, fontWeight: "bold" }}>