Skip to content

armgit / ente

Public Imported from GitHub
0

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

Padding at the top

Manav Rathi0a5959730115
diff --git a/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx b/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx
index 103dddaae8..25aa944d8e 100644
--- a/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx
+++ b/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx
@@ -2,6 +2,7 @@ import { PeopleList } from "@/new/photos/components/PeopleList";
import { isMLEnabled } from "@/new/photos/services/ml";
import { Row } from "@ente/shared/components/Container";
import { Box, styled } from "@mui/material";
+import { t } from "i18next";
import { components } from "react-select";
import { Suggestion, SuggestionType } from "types/search";
@@ -35,13 +36,16 @@ const MenuWithPeople = (props) => {
return (
<Menu {...props}>
<Box my={1}>
- {/* TODO: Hide People header until we start showing cgroups
- {((isMLEnabled() && indexStatus) ||
- (people && people.length > 0)) && (
- <Box>
- <Legend>{t("PEOPLE")}</Legend>
- </Box>
- )} */}
+ {isMLEnabled() &&
+ indexStatus &&
+ (people && people.length > 0 ? (
+ <Box>
+ <Legend>{t("PEOPLE")}</Legend>
+ </Box>
+ ) : (
+ <Box height={6} />
+ ))}
+
{isMLEnabled() && indexStatus && (
<Box>
<Caption>{indexStatusSuggestion.label}</Caption>