Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove hardcoded

Manav Rathi0a359b08358f
diff --git a/web/apps/photos/src/components/ExportInProgress.tsx b/web/apps/photos/src/components/ExportInProgress.tsx
index 9fd81296b5..1972e880d5 100644
--- a/web/apps/photos/src/components/ExportInProgress.tsx
+++ b/web/apps/photos/src/components/ExportInProgress.tsx
@@ -4,22 +4,15 @@ import {
VerticallyCentered,
} from "@ente/shared/components/Container";
import {
- Box,
DialogActions,
DialogContent,
LinearProgress,
- styled,
+ Typography,
} from "@mui/material";
import { t } from "i18next";
import { Trans } from "react-i18next";
import { ExportStage, type ExportProgress } from "services/export";
-export const ComfySpan = styled("span")`
- padding: 0 0.5rem;
- word-spacing: 1rem;
- color: #ddd;
-`;
-
interface Props {
exportStage: ExportStage;
exportProgress: ExportProgress;
@@ -41,7 +34,7 @@ export default function ExportInProgress(props: Props) {
<>
<DialogContent>
<VerticallyCentered>
- <Box sx={{ mb: 1.5 }}>
+ <Typography sx={{ mb: 1.5 }}>
{props.exportStage === ExportStage.STARTING ? (
t("EXPORT_STARTING")
) : props.exportStage === ExportStage.MIGRATION ? (
@@ -56,17 +49,31 @@ export default function ExportInProgress(props: Props) {
ExportStage.TRASHING_DELETED_COLLECTIONS ? (
t("TRASHING_DELETED_COLLECTIONS")
) : (
- <Trans
- i18nKey={"EXPORT_PROGRESS"}
- components={{
- a: <ComfySpan />,
- }}
- values={{
- progress: props.exportProgress,
- }}
- />
+ <Typography
+ component="span"
+ sx={{ color: "text.muted" }}
+ >
+ <Trans
+ i18nKey={"EXPORT_PROGRESS"}
+ components={{
+ a: (
+ <Typography
+ component="span"
+ sx={{
+ color: "text.base",
+ pr: "1rem",
+ wordSpacing: "1rem",
+ }}
+ />
+ ),
+ }}
+ values={{
+ progress: props.exportProgress,
+ }}
+ />
+ </Typography>
)}
- </Box>
+ </Typography>
<FlexWrapper px={1}>
{showIndeterminateProgress() ? (
<LinearProgress />
diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.ts
index 666be0fdeb..d6050ba20b 100644
--- a/web/packages/base/components/utils/theme.ts
+++ b/web/packages/base/components/utils/theme.ts
@@ -136,7 +136,7 @@ const _colors = {
dark: "#8e0fcb",
main: "#9610d6",
light: "#8e2de2",
- lighter: "#984df4", /* TODO(LM) */
+ lighter: "#984df4" /* TODO(LM) */,
},
fixed: {
white: "#fff",