Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix mobile search bar

Manav Rathia55c735d1348
diff --git a/web/apps/photos/src/components/SearchBar.tsx b/web/apps/photos/src/components/SearchBar.tsx
index 20f18ec0f2..e5ad7ca466 100644
--- a/web/apps/photos/src/components/SearchBar.tsx
+++ b/web/apps/photos/src/components/SearchBar.tsx
@@ -81,14 +81,15 @@ export const SearchBar: React.FC<SearchBarProps> = ({
isInSearchMode,
...props
}) => {
+ console.log({ isInSearchMode }, props);
const showSearchInput = () => setIsInSearchMode(true);
const isMobileWidth = useIsMobileWidth();
return (
<SearchBarWrapper>
- {isMobileWidth ? (
+ {isMobileWidth && !isInSearchMode ? (
<SearchBarMobile
- show={!isInSearchMode}
+ show={true}
showSearchInput={showSearchInput}
/>
) : (