Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(photos):show-search-loading-dots-and-update-shortcut-hint

Aswin Asokf33231c12127
diff --git a/web/apps/photos/src/components/SearchBar.tsx b/web/apps/photos/src/components/SearchBar.tsx
index 6601793015..5f6bb7445e 100644
--- a/web/apps/photos/src/components/SearchBar.tsx
+++ b/web/apps/photos/src/components/SearchBar.tsx
@@ -343,7 +343,7 @@ const SearchInput: React.FC<
menuIsOpen={open}
onFocus={handleFocus}
placeholder={t("search_hint")}
- loadingMessage={() => t("loading")}
+ loadingMessage={() => null}
noOptionsMessage={({ inputValue }) => {
if (inputValue.trim()) {
return <SearchEmptyState />;
@@ -449,14 +449,6 @@ function SearchMenu(props: MenuProps<SearchOption, false>) {
role={hasQuery ? "tabpanel" : undefined}
aria-labelledby={hasQuery ? `${id}-${category}` : undefined}
>
- {props.isLoading && counts[category] > 0 && (
- <Typography
- role="status"
- sx={{ color: "text.muted", textAlign: "center", p: 1 }}
- >
- {t("loading")}
- </Typography>
- )}
{props.children}
</div>
<Typography
@@ -624,6 +616,14 @@ const createSelectStyles = (
whiteSpace: "nowrap",
overflowX: "hidden",
}),
+ loadingIndicator: (style) => ({
+ ...style,
+ color: theme.vars.palette.text.muted,
+ paddingRight: "16px",
+ "@media (prefers-reduced-motion: reduce)": {
+ "& span": { animation: "none" },
+ },
+ }),
dropdownIndicator: (style) => ({ ...style, display: "none" }),
indicatorSeparator: (style) => ({ ...style, display: "none" }),
clearIndicator: (style) => ({ ...style, display: "none" }),
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json
index b79a2fe136..5f88794052 100644
--- a/web/packages/base/locales/en-US/translation.json
+++ b/web/packages/base/locales/en-US/translation.json
@@ -480,7 +480,7 @@
"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_navigate_hint": "↑ ↓ to navigate Β· Enter to select",
"search_try_another": "Try another name, date or description.",
"no_results": "No results found",
"no_photos_found_here": "No photos found here",