π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Tweaks
Manav Rathi6fc1f8c2d023
diff --git a/web/packages/new/photos/components/CollectionSelector.tsx b/web/packages/new/photos/components/CollectionSelector.tsxindex 757973a771..51ae28c5c9 100644--- a/web/packages/new/photos/components/CollectionSelector.tsx+++ b/web/packages/new/photos/components/CollectionSelector.tsx@@ -163,8 +163,8 @@ export const CollectionSelector: React.FC<CollectionSelectorProps> = ({<Dialog_open={open}onClose={handleClose}- fullScreen={isFullScreen}fullWidth+ fullScreen={isFullScreen}><DialogTitleWithCloseButton onClose={handleClose}>{dialogTitleForAction(action)}@@ -242,11 +242,11 @@ const AddCollectionButton: React.FC<AddCollectionButtonProps> = ({}) => (<ItemCard TileComponent={AllCollectionTile} onClick={onClick}><LargeTileTextOverlay>{t("create_albums")}</LargeTileTextOverlay>- <ImageContainer>+</ImageContainer>+ <PlusOverlay>+</PlusOverlay></ItemCard>);-const ImageContainer = styled(ItemTileOverlay)`+const PlusOverlay = styled(ItemTileOverlay)`display: flex;justify-content: center;align-items: center;diff --git a/web/packages/new/photos/services/collection/ui.ts b/web/packages/new/photos/services/collection/ui.tsindex 3ab3c9ba51..f34706d920 100644--- a/web/packages/new/photos/services/collection/ui.ts+++ b/web/packages/new/photos/services/collection/ui.ts@@ -87,24 +87,13 @@ const systemCSTypes = new Set<CollectionSummaryType>([]);const addToDisabledCSTypes = new Set<CollectionSummaryType>([- "all",- "archive",+ ...systemCSTypes,"incomingShareViewer",- "trash",- "uncategorized",- "defaultHidden",- "hiddenItems",]);const moveToDisabledCSTypes = new Set<CollectionSummaryType>([- "all",- "archive",- "incomingShareViewer",+ ...addToDisabledCSTypes,"incomingShareCollaborator",- "trash",- "uncategorized",- "defaultHidden",- "hiddenItems",]);const hideFromCollectionBarCSTypes = new Set<CollectionSummaryType>([@@ -114,18 +103,18 @@ const hideFromCollectionBarCSTypes = new Set<CollectionSummaryType>(["defaultHidden",]);+export const isSystemCollection = (type: CollectionSummaryType) =>+ systemCSTypes.has(type);+export const areOnlySystemCollections = (collectionSummaries: CollectionSummaries,) => collectionSummaries.values().every(({ type }) => isSystemCollection(type));-export const canMoveToCollection = (type: CollectionSummaryType) =>- !moveToDisabledCSTypes.has(type);-export const canAddToCollection = (type: CollectionSummaryType) =>!addToDisabledCSTypes.has(type);-export const isSystemCollection = (type: CollectionSummaryType) =>- systemCSTypes.has(type);+export const canMoveToCollection = (type: CollectionSummaryType) =>+ !moveToDisabledCSTypes.has(type);export const shouldShowOnCollectionBar = (type: CollectionSummaryType) =>!hideFromCollectionBarCSTypes.has(type);