Skip to content

armgit / ente

Public Imported from GitHub
0

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

Polish social desktop layouts

Anand Baburajanb9b5738cb07c
diff --git a/web/apps/social/src/components/ConfirmationActionSheet.tsx b/web/apps/social/src/components/ConfirmationActionSheet.tsx
index f931942a7d..e9cd0999fc 100644
--- a/web/apps/social/src/components/ConfirmationActionSheet.tsx
+++ b/web/apps/social/src/components/ConfirmationActionSheet.tsx
@@ -79,6 +79,13 @@ export const ConfirmationActionSheet: React.FC<
transform: "translateX(-50%)",
width: "calc(100vw - 12px)",
maxWidth: 363,
+ "@media (min-width: 600px)": {
+ borderRadius: "20px",
+ bottom: "auto",
+ top: "50%",
+ transform: "translate(-50%, -50%)",
+ width: 363,
+ },
},
},
transition: { onExited },
diff --git a/web/apps/social/src/screens/CreateAccountScreen.tsx b/web/apps/social/src/screens/CreateAccountScreen.tsx
index f1931b7d72..7fa9f34fbf 100644
--- a/web/apps/social/src/screens/CreateAccountScreen.tsx
+++ b/web/apps/social/src/screens/CreateAccountScreen.tsx
@@ -247,7 +247,7 @@ export const CreateAccountScreen: React.FC<CreateAccountScreenProps> = ({
pb: "154px",
px: 3,
width: "100%",
- "@media (min-width: 600px)": { maxWidth: 375 },
+ "@media (min-width: 600px)": { maxWidth: 390 },
}}
>
<Box
@@ -438,7 +438,7 @@ export const CreateAccountScreen: React.FC<CreateAccountScreenProps> = ({
flexDirection: "column",
gap: "16px",
left: "50%",
- maxWidth: 375,
+ maxWidth: 390,
p: 3,
position: "fixed",
transform: "translateX(-50%)",
diff --git a/web/apps/social/src/screens/FriendsScreen.tsx b/web/apps/social/src/screens/FriendsScreen.tsx
index 3eab3f0745..ab037c0a7f 100644
--- a/web/apps/social/src/screens/FriendsScreen.tsx
+++ b/web/apps/social/src/screens/FriendsScreen.tsx
@@ -346,7 +346,7 @@ export const FriendsScreen: React.FC<FriendsScreenProps> = ({
minHeight: "100svh",
mx: "auto",
width: "100%",
- "@media (min-width: 600px)": { maxWidth: 375 },
+ "@media (min-width: 600px)": { maxWidth: 390 },
}}
>
<Box
diff --git a/web/apps/social/src/screens/HomeScreen.tsx b/web/apps/social/src/screens/HomeScreen.tsx
index 52c0a4b84a..22127a6546 100644
--- a/web/apps/social/src/screens/HomeScreen.tsx
+++ b/web/apps/social/src/screens/HomeScreen.tsx
@@ -468,7 +468,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({
minHeight: "100svh",
mx: "auto",
width: "100%",
- "@media (min-width: 600px)": { maxWidth: 375 },
+ "@media (min-width: 600px)": { maxWidth: 390 },
}}
>
<Box
diff --git a/web/apps/social/src/screens/LoginScreen.tsx b/web/apps/social/src/screens/LoginScreen.tsx
index 80fb226bec..b51ef7bd7e 100644
--- a/web/apps/social/src/screens/LoginScreen.tsx
+++ b/web/apps/social/src/screens/LoginScreen.tsx
@@ -213,7 +213,7 @@ export const LoginScreen: React.FC<LoginScreenProps> = ({
pb: "154px",
px: 3,
width: "100%",
- "@media (min-width: 600px)": { maxWidth: 375 },
+ "@media (min-width: 600px)": { maxWidth: 390 },
}}
>
<Box
@@ -307,7 +307,7 @@ export const LoginScreen: React.FC<LoginScreenProps> = ({
flexDirection: "column",
gap: "16px",
left: "50%",
- maxWidth: 375,
+ maxWidth: 390,
p: 3,
position: "fixed",
transform: "translateX(-50%)",
diff --git a/web/apps/social/src/screens/OnboardingScreen.tsx b/web/apps/social/src/screens/OnboardingScreen.tsx
index 477204e52d..5cde3dd2d7 100644
--- a/web/apps/social/src/screens/OnboardingScreen.tsx
+++ b/web/apps/social/src/screens/OnboardingScreen.tsx
@@ -88,7 +88,10 @@ export const OnboardingScreen: React.FC<OnboardingScreenProps> = ({
overflow: "hidden",
px: 3,
width: "100%",
- "@media (min-width: 600px)": { maxWidth: 375 },
+ "@media (min-width: 600px)": {
+ maxWidth: 390,
+ minHeight: "100svh",
+ },
"@media (max-height: 760px)": { minHeight: "100svh" },
}}
>
@@ -116,65 +119,81 @@ export const OnboardingScreen: React.FC<OnboardingScreenProps> = ({
</Box>
<Box />
</Box>
- <Box
- component="img"
- alt=""
- src="/images/share-memories.svg"
- sx={{
- flexShrink: 0,
- height: 245.189,
- mt: "112px",
- width: 282,
- "@media (max-height: 760px)": {
- height: 219,
- mt: "68px",
- width: 252,
- },
- "@media (max-width: 340px)": {
- height: "auto",
- width: "76vw",
- },
- }}
- />
<Box
sx={{
alignItems: "center",
display: "flex",
flexDirection: "column",
flexShrink: 0,
- mt: "92px",
- textAlign: "center",
- "@media (max-height: 760px)": { mt: "60px" },
+ width: "100%",
+ "@media (min-width: 600px)": {
+ flex: "1 1 auto",
+ justifyContent: "center",
+ minHeight: 0,
+ },
}}
>
<Box
- component="h1"
+ component="img"
+ alt=""
+ src="/images/share-memories.svg"
sx={{
- fontFamily: "Nunito, sans-serif",
- fontSize: 24,
- fontWeight: 800,
- letterSpacing: 0,
- lineHeight: "29px",
- m: 0,
- whiteSpace: "nowrap",
+ flexShrink: 0,
+ height: 245.189,
+ mt: "112px",
+ width: 282,
+ "@media (max-height: 760px)": {
+ height: 219,
+ mt: "68px",
+ width: 252,
+ },
+ "@media (max-width: 340px)": {
+ height: "auto",
+ width: "76vw",
+ },
+ "@media (min-width: 600px)": { mt: 0 },
}}
- >
- Share your life
- </Box>
+ />
<Box
- component="p"
sx={{
- color: copyGreen,
- fontFamily: '"Inter Variable", Inter, sans-serif',
- fontSize: 14,
- fontWeight: 500,
- lineHeight: "20px",
- m: 0,
- mt: "12px",
- maxWidth: 314,
+ alignItems: "center",
+ display: "flex",
+ flexDirection: "column",
+ flexShrink: 0,
+ mt: "92px",
+ textAlign: "center",
+ "@media (max-height: 760px)": { mt: "60px" },
}}
>
- {onboardingDescription}
+ <Box
+ component="h1"
+ sx={{
+ fontFamily: "Nunito, sans-serif",
+ fontSize: 24,
+ fontWeight: 800,
+ letterSpacing: 0,
+ lineHeight: "29px",
+ m: 0,
+ whiteSpace: "nowrap",
+ }}
+ >
+ Share your life
+ </Box>
+ <Box
+ component="p"
+ sx={{
+ color: copyGreen,
+ fontFamily: '"Inter Variable", Inter, sans-serif',
+ fontSize: 14,
+ fontWeight: 500,
+ lineHeight: "20px",
+ m: 0,
+ mt: "12px",
+ maxWidth: 314,
+ }}
+ >
+ {onboardingDescription}
+ </Box>
</Box>
</Box>
<Box
@@ -186,6 +205,10 @@ export const OnboardingScreen: React.FC<OnboardingScreenProps> = ({
mt: "52px",
width: "100%",
"@media (max-height: 760px)": { mt: "40px" },
+ "@media (min-width: 600px)": {
+ mb: "44px",
+ mt: 0,
+ },
}}
>
<ActionButton variant="primary" onClick={onCreateAccount}>
diff --git a/web/apps/social/src/screens/ProfileScreen.tsx b/web/apps/social/src/screens/ProfileScreen.tsx
index 02bc948d71..bf4163b04e 100644
--- a/web/apps/social/src/screens/ProfileScreen.tsx
+++ b/web/apps/social/src/screens/ProfileScreen.tsx
@@ -362,7 +362,7 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
overflow: "hidden",
position: "relative",
width: "100%",
- "@media (min-width: 600px)": { maxWidth: 375 },
+ "@media (min-width: 600px)": { maxWidth: 390 },
}}
>
{isOwnerProfile && (
@@ -384,6 +384,10 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
top: 0,
width: "100%",
zIndex: 0,
+ "@media (min-width: 600px)": {
+ borderBottomLeftRadius: photoMasonryRadius,
+ borderBottomRightRadius: photoMasonryRadius,
+ },
}}
/>
<Box
diff --git a/web/apps/social/src/screens/SettingsScreen.tsx b/web/apps/social/src/screens/SettingsScreen.tsx
index ce0097b50a..7df079fbbb 100644
--- a/web/apps/social/src/screens/SettingsScreen.tsx
+++ b/web/apps/social/src/screens/SettingsScreen.tsx
@@ -181,7 +181,7 @@ export const SettingsScreen: React.FC<SettingsScreenProps> = ({
minHeight: "100svh",
mx: "auto",
width: "100%",
- "@media (min-width: 600px)": { maxWidth: 375 },
+ "@media (min-width: 600px)": { maxWidth: 390 },
}}
>
<Box
diff --git a/web/apps/social/src/screens/SetupProfileScreen.tsx b/web/apps/social/src/screens/SetupProfileScreen.tsx
index 3007f61736..d1b5a8c664 100644
--- a/web/apps/social/src/screens/SetupProfileScreen.tsx
+++ b/web/apps/social/src/screens/SetupProfileScreen.tsx
@@ -242,7 +242,7 @@ export const SetupProfileScreen: React.FC<SetupProfileScreenProps> = ({
pb: "120px",
px: 3,
width: "100%",
- "@media (min-width: 600px)": { maxWidth: 375 },
+ "@media (min-width: 600px)": { maxWidth: 390 },
}}
>
<Box
@@ -437,7 +437,7 @@ export const SetupProfileScreen: React.FC<SetupProfileScreenProps> = ({
bottom: 0,
boxSizing: "border-box",
left: "50%",
- maxWidth: 375,
+ maxWidth: 390,
p: 3,
position: "fixed",
transform: "translateX(-50%)",
diff --git a/web/apps/social/src/screens/ShareProfileLinkScreen.tsx b/web/apps/social/src/screens/ShareProfileLinkScreen.tsx
index b5bb50912b..aefc27c014 100644
--- a/web/apps/social/src/screens/ShareProfileLinkScreen.tsx
+++ b/web/apps/social/src/screens/ShareProfileLinkScreen.tsx
@@ -13,6 +13,7 @@ const textMuted = "#666";
const textLight = "#969696";
const paleGreen = "#E7F6E9";
const iconFill = "#F0F0F0";
+const actionRowHover = "#F5F5F5";
interface ShareProfileLinkScreenProps {
onBack: () => void;
@@ -112,7 +113,7 @@ const ActionRow: React.FC<ActionRowProps> = ({
outline: `2px solid ${green}`,
outlineOffset: 2,
},
- "&:hover": { bgcolor: "#F7F7F7" },
+ "&:hover": { bgcolor: actionRowHover },
}}
>
<Box
@@ -222,7 +223,7 @@ export const ShareProfileLinkScreen: React.FC<ShareProfileLinkScreenProps> = ({
pb: "120px",
px: 3,
width: "100%",
- "@media (min-width: 600px)": { maxWidth: 375 },
+ "@media (min-width: 600px)": { maxWidth: 390 },
}}
>
<Box
@@ -428,7 +429,7 @@ export const ShareProfileLinkScreen: React.FC<ShareProfileLinkScreenProps> = ({
bottom: 0,
boxSizing: "border-box",
left: "50%",
- maxWidth: 375,
+ maxWidth: 390,
p: 3,
position: "fixed",
transform: "translateX(-50%)",
diff --git a/web/apps/social/src/screens/VerifyEmailScreen.tsx b/web/apps/social/src/screens/VerifyEmailScreen.tsx
index 752d647a73..72a3a3d300 100644
--- a/web/apps/social/src/screens/VerifyEmailScreen.tsx
+++ b/web/apps/social/src/screens/VerifyEmailScreen.tsx
@@ -227,7 +227,7 @@ export const VerifyEmailScreen: React.FC<VerifyEmailScreenProps> = ({
pb: "120px",
px: 3,
width: "100%",
- "@media (min-width: 600px)": { maxWidth: 375 },
+ "@media (min-width: 600px)": { maxWidth: 390 },
}}
>
<Box
@@ -425,7 +425,7 @@ export const VerifyEmailScreen: React.FC<VerifyEmailScreenProps> = ({
bottom: 0,
boxSizing: "border-box",
left: "50%",
- maxWidth: 375,
+ maxWidth: 390,
p: 3,
position: "fixed",
transform: "translateX(-50%)",