Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix empty space

Manav Rathicaadba399653
diff --git a/web/packages/new/photos/components/SearchBar.tsx b/web/packages/new/photos/components/SearchBar.tsx
index 4a9b5cde5b..43d55a4c14 100644
--- a/web/packages/new/photos/components/SearchBar.tsx
+++ b/web/packages/new/photos/components/SearchBar.tsx
@@ -1,4 +1,5 @@
import { assertionFailed } from "@/base/assert";
+import { EnteLogo } from "@/base/components/EnteLogo";
import type { ButtonishProps } from "@/base/components/mui";
import { useIsSmallWidth } from "@/base/components/utils/hooks";
import { ItemCard, PreviewItemTile } from "@/new/photos/components/Tiles";
@@ -120,7 +121,21 @@ interface MobileSearchAreaProps {
}
const MobileSearchArea: React.FC<MobileSearchAreaProps> = ({ onSearch }) => (
- <Stack direction="row" sx={{ justifyContent: "flex-end" }}>
+ <Stack direction="row" sx={{ alignItems: "center" }}>
+ <Box
+ sx={{
+ alignItems: "center",
+ // Move to the center.
+ mx: "auto",
+ // Offset on the left by the size of the search icon to make it
+ // look visually centered.
+ pl: "48px",
+ // Remove extra vertical space for truer vertical centering.
+ lineHeight: 0,
+ }}
+ >
+ <EnteLogo height={15} />
+ </Box>
<IconButton onClick={onSearch}>
<SearchIcon />
</IconButton>