Skip to content

armgit / ente

Public Imported from GitHub
0

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

Rename

Manav Rathia2b9126c88c5
diff --git a/web/packages/base/components/mui/Container.tsx b/web/packages/base/components/mui/Container.tsx
index abaa0e2dce..78e8657f1b 100644
--- a/web/packages/base/components/mui/Container.tsx
+++ b/web/packages/base/components/mui/Container.tsx
@@ -18,7 +18,7 @@ export const SpaceBetweenFlex = styled("div")`
* A flex child that fills the entire flex direction, and shows its children
* after centering them both vertically and horizontally.
*/
-export const CenteredBox = styled("div")`
+export const CenteredFill = styled("div")`
flex: 1;
display: flex;
justify-content: center;
diff --git a/web/packages/new/photos/components/gallery/PeopleHeader.tsx b/web/packages/new/photos/components/gallery/PeopleHeader.tsx
index 8ef463d306..63ae4f2ca9 100644
--- a/web/packages/new/photos/components/gallery/PeopleHeader.tsx
+++ b/web/packages/new/photos/components/gallery/PeopleHeader.tsx
@@ -1,6 +1,9 @@
import { ActivityErrorIndicator } from "@/base/components/ErrorIndicator";
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
-import { CenteredBox, SpaceBetweenFlex } from "@/base/components/mui/Container";
+import {
+ CenteredFill,
+ SpaceBetweenFlex,
+} from "@/base/components/mui/Container";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import { LoadingButton } from "@/base/components/mui/LoadingButton";
import {
@@ -691,15 +694,15 @@ const SuggestionsDialog: React.FC<SuggestionsDialogProps> = ({
sx={{ display: "flex", "&&&": { pt: 0 } }}
>
{state.activity == "fetching" ? (
- <CenteredBox>
+ <CenteredFill>
<ActivityIndicator>
{t("people_suggestions_finding")}
</ActivityIndicator>
- </CenteredBox>
+ </CenteredFill>
) : state.fetchFailed ? (
- <CenteredBox>
+ <CenteredFill>
<ActivityErrorIndicator />
- </CenteredBox>
+ </CenteredFill>
) : state.showChoices ? (
<SuggestionOrChoiceList
items={state.choices}
@@ -707,14 +710,14 @@ const SuggestionsDialog: React.FC<SuggestionsDialogProps> = ({
onUpdateItem={handleUpdateItem}
/>
) : state.suggestions.length == 0 ? (
- <CenteredBox>
+ <CenteredFill>
<Typography
color="text.muted"
sx={{ textAlign: "center" }}
>
t{"people_suggestions_empty"}
</Typography>
- </CenteredBox>
+ </CenteredFill>
) : (
<SuggestionOrChoiceList
items={state.suggestions}
diff --git a/web/packages/new/photos/components/gallery/index.tsx b/web/packages/new/photos/components/gallery/index.tsx
index b487dd512e..37b31a3b54 100644
--- a/web/packages/new/photos/components/gallery/index.tsx
+++ b/web/packages/new/photos/components/gallery/index.tsx
@@ -7,7 +7,7 @@
* there.
*/
-import { CenteredBox } from "@/base/components/mui/Container";
+import { CenteredFill } from "@/base/components/mui/Container";
import type { SearchOption } from "@/new/photos/services/search/types";
import { Paper, Stack, Typography } from "@mui/material";
import { t } from "i18next";
@@ -70,7 +70,7 @@ export const PeopleEmptyState: React.FC = () => {
export const PeopleEmptyStateMessage: React.FC<React.PropsWithChildren> = ({
children,
}) => (
- <CenteredBox>
+ <CenteredFill>
<Typography
color="text.muted"
sx={{
@@ -83,7 +83,7 @@ export const PeopleEmptyStateMessage: React.FC<React.PropsWithChildren> = ({
>
{children}
</Typography>
- </CenteredBox>
+ </CenteredFill>
);
export const PeopleEmptyStateDisabled: React.FC = () => {