Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(photos):keep-people-search-tab-on-desktop

Aswin Asok0a904e968d06
diff --git a/web/apps/photos/src/components/SearchBar.tsx b/web/apps/photos/src/components/SearchBar.tsx
index 509d2c0322..1f17aea3ed 100644
--- a/web/apps/photos/src/components/SearchBar.tsx
+++ b/web/apps/photos/src/components/SearchBar.tsx
@@ -32,6 +32,7 @@ import {
useTheme,
type Theme,
} from "@mui/material";
+import { isDesktop } from "ente-base/app";
import type { ButtonishProps } from "ente-base/components/mui";
import { FocusVisibleButton } from "ente-base/components/mui/FocusVisibleButton";
import { useIsSmallWidth } from "ente-base/components/utils/hooks";
@@ -376,7 +377,9 @@ interface SearchCategoryProps {
};
}
-const searchTabs = searchCategories.filter((category) => category !== "people");
+const searchTabs = searchCategories.filter(
+ (category) => isDesktop || category !== "people",
+);
function SearchMenu(props: MenuProps<SearchOption, false>) {
const {