Skip to content

armgit / ente

Public Imported from GitHub
0

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

style(photos):add-subtle-search-start-hint

Aswin Asokbbc61ce02445
diff --git a/web/apps/photos/src/components/SearchBar.tsx b/web/apps/photos/src/components/SearchBar.tsx
index a414efe1f5..031f0cca1c 100644
--- a/web/apps/photos/src/components/SearchBar.tsx
+++ b/web/apps/photos/src/components/SearchBar.tsx
@@ -712,7 +712,11 @@ const EmptyState: React.FC<
const hasPeople = people && people.length > 0;
if (!hasPeople && !label) {
- return null;
+ return (
+ <Typography variant="small" sx={{ color: "text.muted", py: 1 }}>
+ {t("search_start_typing")}
+ </Typography>
+ );
}
return (
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json
index 2e7dc482e9..b79a2fe136 100644
--- a/web/packages/base/locales/en-US/translation.json
+++ b/web/packages/base/locales/en-US/translation.json
@@ -479,6 +479,7 @@
"search_results": "Search results",
"search_places": "Places",
"search_no_matches": "No matches found!",
+ "search_start_typing": "Type something to get started",
"search_navigate_hint": "↑ ↓ to navigate Β· Enter to open",
"search_try_another": "Try another name, date or description.",
"no_results": "No results found",