Skip to content

armgit / ente

Public Imported from GitHub
0

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

Format photos shared album files

Anand Baburajan937ec118f646
diff --git a/web/apps/photos/src/components/DownloadStatusNotifications.tsx b/web/apps/photos/src/components/DownloadStatusNotifications.tsx
index 513f48e06b..4a3672a3bf 100644
--- a/web/apps/photos/src/components/DownloadStatusNotifications.tsx
+++ b/web/apps/photos/src/components/DownloadStatusNotifications.tsx
@@ -6,7 +6,14 @@ import {
import { HugeiconsIcon } from "@hugeicons/react";
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
import ReplayIcon from "@mui/icons-material/Replay";
-import { Box, Button, Dialog, keyframes, styled, Typography } from "@mui/material";
+import {
+ Box,
+ Button,
+ Dialog,
+ keyframes,
+ styled,
+ Typography,
+} from "@mui/material";
import { useBaseContext } from "ente-base/context";
import {
isSaveComplete,
@@ -227,7 +234,9 @@ export const DownloadStatusNotifications: React.FC<
}
// Title is always the album name (truncated)
- const filesCountTitle = t("files_count", { count: group.total });
+ const filesCountTitle = t("files_count", {
+ count: group.total,
+ });
const title =
group.total === 1 && group.title === filesCountTitle
? `${group.total} ${fileLabel}`
@@ -254,7 +263,9 @@ export const DownloadStatusNotifications: React.FC<
[theme.breakpoints.down("sm")]: {
"&&": {
bottom: `${index * 70 + 16}px`,
- ...(fullWidthOnMobile ? { left: "8px" } : {}),
+ ...(fullWidthOnMobile
+ ? { left: "8px" }
+ : {}),
},
width: fullWidthOnMobile
? "calc(100vw - 16px)"
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx
index 125e9164bb..c717212dd5 100644
--- a/web/apps/photos/src/pages/shared-albums.tsx
+++ b/web/apps/photos/src/pages/shared-albums.tsx
@@ -101,18 +101,12 @@ import { usePhotosAppContext } from "ente-new/photos/types/context";
import { useJoinAlbum } from "hooks/useJoinAlbum";
import { t } from "i18next";
import { useRouter } from "next/router";
-import {
- useCallback,
- useEffect,
- useMemo,
- useRef,
- useState,
-} from "react";
+import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { type FileWithPath } from "react-dropzone";
import { uploadManager } from "services/upload-manager";
import { getSelectedFiles, type SelectedState } from "utils/file";
-import { quickLinkDateRangeForCreationTimes } from "utils/quick-link";
import { getEnteURL } from "utils/public-album";
+import { quickLinkDateRangeForCreationTimes } from "utils/quick-link";
export default function PublicCollectionGallery() {
const { showMiniDialog, onGenericError } = useBaseContext();
@@ -740,10 +734,7 @@ const GreenButton = styled(Button)(() => ({
"&:hover": { backgroundColor: "#07A820" },
}));
-const navbarActionButtonSx = {
- borderRadius: "16px",
- paddingBlock: "11px",
-};
+const navbarActionButtonSx = { borderRadius: "16px", paddingBlock: "11px" };
const AddPhotosButton: React.FC<ButtonishProps> = ({ onClick }) => {
const disabled = uploadManager.isUploadInProgress();
@@ -1010,7 +1001,10 @@ const FileListHeader: React.FC<FileListHeaderProps> = ({
variant="small"
sx={{ color: "text.muted", ml: "-6px" }}
>
- <Box component="span" sx={{ mr: "6px" }}>
+ <Box
+ component="span"
+ sx={{ mr: "6px" }}
+ >
{"\u00b7"}
</Box>
{memoriesDateRange}