Skip to content

armgit / ente

Public Imported from GitHub
0

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

Conv

Manav Rathi8b1af42cf016
diff --git a/web/apps/photos/src/components/Export.tsx b/web/apps/photos/src/components/Export.tsx
index 63aa99d271..7a8ab1c569 100644
--- a/web/apps/photos/src/components/Export.tsx
+++ b/web/apps/photos/src/components/Export.tsx
@@ -36,7 +36,6 @@ import { formattedDateTime } from "ente-base/i18n-date";
import log from "ente-base/log";
import { EnteFile } from "ente-media/file";
import { ItemCard, PreviewItemTile } from "ente-new/photos/components/Tiles";
-import { FlexWrapper } from "ente-shared/components/Container";
import { CustomError } from "ente-shared/error";
import { t } from "i18next";
import React, { memo, useCallback, useEffect, useState } from "react";
@@ -395,8 +394,8 @@ const ExportInProgressDialogContent: React.FC<
> = ({ exportStage, exportProgress, onClose, onStopExport }) => (
<>
<DialogContent>
- <Stack sx={{ alignItems: "center" }}>
- <Typography sx={{ mb: 1.5 }}>
+ <Stack sx={{ alignItems: "center", gap: 3, mt: 1 }}>
+ <Typography>
{exportStage === ExportStage.starting ? (
t("export_starting")
) : exportStage === ExportStage.migration ? (
@@ -433,14 +432,9 @@ const ExportInProgressDialogContent: React.FC<
</Typography>
)}
</Typography>
- <FlexWrapper px={1}>
- {exportStage === ExportStage.starting ||
- exportStage === ExportStage.migration ||
- exportStage === ExportStage.renamingCollectionFolders ||
- exportStage === ExportStage.trashingDeletedFiles ||
- exportStage === ExportStage.trashingDeletedCollections ? (
- <LinearProgress />
- ) : (
+
+ <Box sx={{ alignSelf: "stretch" }}>
+ {exportStage === ExportStage.exportingFiles ? (
<LinearProgress
variant="determinate"
value={Math.round(
@@ -450,8 +444,10 @@ const ExportInProgressDialogContent: React.FC<
exportProgress.total,
)}
/>
+ ) : (
+ <LinearProgress />
)}
- </FlexWrapper>
+ </Box>
</Stack>
</DialogContent>
<DialogActions>