Skip to content

armgit / ente

Public Imported from GitHub
0

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

Set equal 12px spacing around the home header

Anand Baburajan74811d3f2188
diff --git a/web/apps/space/src/components/HomeHeader.tsx b/web/apps/space/src/components/HomeHeader.tsx
index a75face9d8..cdfdda3689 100644
--- a/web/apps/space/src/components/HomeHeader.tsx
+++ b/web/apps/space/src/components/HomeHeader.tsx
@@ -26,7 +26,7 @@ const avatarFadeSx = {
"@media (prefers-reduced-motion: reduce)": { animation: "none" },
} as const;
-const spaceHomeHeaderHeight = 60;
+const spaceHomeHeaderHeight = 68;
const spaceHomeHeaderBarHeight = 44;
interface SpaceHomeHeaderProps {
@@ -58,9 +58,10 @@ export const SpaceHomeHeader: React.FC<SpaceHomeHeaderProps> = ({
gridTemplateColumns: `${headerSideWidth}px minmax(0, 1fr) ${headerSideWidth}px`,
height: spaceHomeHeaderHeight,
maxWidth: "100%",
+ pb: "12px",
position: "relative",
+ pt: "12px",
px: "8px",
- py: "8px",
width: "100%",
zIndex: 4,
"&::after": {
@@ -72,7 +73,7 @@ export const SpaceHomeHeader: React.FC<SpaceHomeHeaderProps> = ({
pointerEvents: "none",
position: "absolute",
right: "8px",
- top: "8px",
+ top: "12px",
zIndex: 0,
},
"&::before": {
diff --git a/web/apps/space/src/screens/HomeScreen.tsx b/web/apps/space/src/screens/HomeScreen.tsx
index 4aade307a8..1b265e5432 100644
--- a/web/apps/space/src/screens/HomeScreen.tsx
+++ b/web/apps/space/src/screens/HomeScreen.tsx
@@ -2285,11 +2285,11 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({
flexDirection: "column",
gap: 0,
justifyContent: showFeedCards ? "flex-start" : "center",
- minHeight: "calc(100svh - 60px)",
+ minHeight: "calc(100svh - 68px)",
minWidth: 0,
pb: "calc(env(safe-area-inset-bottom) + 112px)",
px: feedHorizontalPadding,
- pt: showFeedCards ? "4px" : "8px",
+ pt: showFeedCards ? 0 : "8px",
width: "100%",
}}
>