π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[web][photos] Match reset cover preview to default cover
AswinAsok25fd94d5ab19
diff --git a/web/apps/photos/src/components/Collections/EditAlbumDetailsDialog.tsx b/web/apps/photos/src/components/Collections/EditAlbumDetailsDialog.tsxindex 8a23357295..ee465e9e74 100644--- a/web/apps/photos/src/components/Collections/EditAlbumDetailsDialog.tsx+++ b/web/apps/photos/src/components/Collections/EditAlbumDetailsDialog.tsx@@ -28,6 +28,7 @@ import {maxAlbumDescriptionLength,type Collection,} from "ente-media/collection";+import { sortFiles } from "ente-media/collection-sort";import type { EnteFile } from "ente-media/file";import { FileType } from "ente-media/file-type";import { ItemCard } from "ente-new/photos/components/Tiles";@@ -141,14 +142,14 @@ export const EditAlbumDetailsDialog: React.FC<EditAlbumDetailsDialogProps> = ({);const effectiveCoverID =pendingCoverID ?? collection.pubMagicMetadata?.data.coverID ?? 0;+ const defaultCoverFile = () =>+ sortFiles([...files], collection.pubMagicMetadata?.data.asc)[0];const effectiveCoverFile =pendingCoverID === undefined? initialCoverFile: pendingCoverID > 0? files.find(({ id }) => id === pendingCoverID)- : collection.pubMagicMetadata?.data.asc- ? files.at(-1)- : files[0];+ : defaultCoverFile();return (<>diff --git a/web/apps/photos/src/components/Collections/PickCoverPhotoDialog.tsx b/web/apps/photos/src/components/Collections/PickCoverPhotoDialog.tsxindex 6765a4cc88..0ce003645b 100644--- a/web/apps/photos/src/components/Collections/PickCoverPhotoDialog.tsx+++ b/web/apps/photos/src/components/Collections/PickCoverPhotoDialog.tsx@@ -299,7 +299,6 @@ const backButtonSx = {flexShrink: 0,color: "text.base",};-// Shared actions normally share a row; keep these stacked at their full height.const actionButtonSx = {flex: "none",minHeight: 52,