π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
style(DownloadStatusNotification):added-animated-ellipsis
Aswin Asok763f4beaef01
diff --git a/web/apps/photos/src/components/DownloadStatusNotifications.tsx b/web/apps/photos/src/components/DownloadStatusNotifications.tsxindex df49239be7..41fe9e67c6 100644--- a/web/apps/photos/src/components/DownloadStatusNotifications.tsx+++ b/web/apps/photos/src/components/DownloadStatusNotifications.tsx@@ -1,5 +1,5 @@import ReplayIcon from "@mui/icons-material/Replay";-import { Typography } from "@mui/material";+import { keyframes, styled, Typography } from "@mui/material";import { useBaseContext } from "ente-base/context";import {isSaveComplete,@@ -18,6 +18,21 @@ const truncateAlbumName = (name: string): string => {return name.slice(0, MAX_ALBUM_NAME_LENGTH) + "...";};+/** CSS keyframes for animating ellipsis dots */+const ellipsisAnimation = keyframes`+ 0% { content: " ."; }+ 33% { content: " .."; }+ 66% { content: " ..."; }+`;++/** Animated ellipsis using pure CSS - no React re-renders */+const AnimatedEllipsis = styled("span")`+ &::after {+ content: " .";+ animation: ${ellipsisAnimation} 1.5s steps(1) infinite;+ }+`;+interface DownloadStatusNotificationsProps {/*** A list of user-initiated downloads for which a status should be shown.@@ -117,12 +132,17 @@ export const DownloadStatusNotifications: React.FC<!!group.downloadDirPath || group.total === 1;// Build the title based on download type- let progressTitle: string;+ let progressTitle: React.ReactNode;if (isZipDownload) {const part = group.currentPart ?? 1;- progressTitle = group.isDownloadingZip- ? t("downloading_part", { part })- : t("preparing_part", { part });+ progressTitle = (+ <>+ {group.isDownloadingZip+ ? t("downloading_part", { part })+ : t("preparing_part", { part })}+ <AnimatedEllipsis />+ </>+ );} else if (isDesktopOrSingleFile) {progressTitle =group.total === 1