Skip to content

armgit / ente

Public Imported from GitHub
0

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

[photos][web] Preserve settings menu while searching

AswinAsok76425ec0c7d2
diff --git a/web/apps/photos/src/components/sidebar/SettingsSearch.tsx b/web/apps/photos/src/components/sidebar/SettingsSearch.tsx
index 4fb5bf6a3d..147b195f16 100644
--- a/web/apps/photos/src/components/sidebar/SettingsSearch.tsx
+++ b/web/apps/photos/src/components/sidebar/SettingsSearch.tsx
@@ -260,11 +260,16 @@ export function SettingsSearch({ onSelect, children }: SettingsSearchProps) {
</>
)}
</Box>
- {!searching && (
- <Box sx={{ flex: 1, minHeight: 0, overflowY: "auto" }}>
- {children}
- </Box>
- )}
+ <Box
+ sx={{
+ display: searching ? "none" : "block",
+ flex: 1,
+ minHeight: 0,
+ overflowY: "auto",
+ }}
+ >
+ {children}
+ </Box>
</Box>
);
}