Skip to content

armgit / ente

Public Imported from GitHub
0

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

Unify Space corner radii and confirmation button styling

Anand Baburajan98b5579e5b61
diff --git a/web/apps/space/src/components/ActionToast.tsx b/web/apps/space/src/components/ActionToast.tsx
index 9c28936d1b..8fa88d0348 100644
--- a/web/apps/space/src/components/ActionToast.tsx
+++ b/web/apps/space/src/components/ActionToast.tsx
@@ -79,7 +79,7 @@ export const SpaceActionToast: React.FC<SpaceActionToastProps> = ({
sx={{
alignItems: "center",
bgcolor: spaceHomeSurface,
- borderRadius: "22px",
+ borderRadius: "24px",
boxShadow: "0 12px 32px rgba(0, 0, 0, 0.18)",
boxSizing: "border-box",
color: textBase,
diff --git a/web/apps/space/src/components/ConfirmationActionSheet.tsx b/web/apps/space/src/components/ConfirmationActionSheet.tsx
index b1cf7c149d..2ebbb23bb3 100644
--- a/web/apps/space/src/components/ConfirmationActionSheet.tsx
+++ b/web/apps/space/src/components/ConfirmationActionSheet.tsx
@@ -6,10 +6,10 @@ import {
import { SpaceBottomSheetTransition } from "components/BottomSheetTransition";
import React from "react";
import {
+ spaceControlBackgroundHover,
spaceDanger,
spaceDialogBackground,
spaceOnAccent,
- spaceSurface,
spaceText,
spaceTextMuted,
} from "styles/colors";
@@ -156,8 +156,8 @@ export const ConfirmationActionSheet: React.FC<
/>
<SheetButton
label={cancelLabel}
- backgroundColor={spaceSurface}
- color={spaceTextMuted}
+ backgroundColor={spaceControlBackgroundHover}
+ color={spaceText}
disabled={cancelDisabled}
onClick={onCancel}
/>
diff --git a/web/apps/space/src/components/FileViewer.tsx b/web/apps/space/src/components/FileViewer.tsx
index 58204b40e0..696c494525 100644
--- a/web/apps/space/src/components/FileViewer.tsx
+++ b/web/apps/space/src/components/FileViewer.tsx
@@ -2048,7 +2048,7 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
sx={{
bgcolor: inputBackground,
border: 0,
- borderRadius: "24px",
+ borderRadius: "16px",
boxSizing: "border-box",
color: textBase,
flex: "1 1 auto",
@@ -2186,7 +2186,7 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
sx={{
bgcolor: inputBackground,
border: 0,
- borderRadius: "24px",
+ borderRadius: "16px",
boxSizing: "border-box",
color: textBase,
flex: "1 1 auto",
diff --git a/web/apps/space/src/components/HomeHeader.tsx b/web/apps/space/src/components/HomeHeader.tsx
index cdfdda3689..c804999fcc 100644
--- a/web/apps/space/src/components/HomeHeader.tsx
+++ b/web/apps/space/src/components/HomeHeader.tsx
@@ -66,7 +66,7 @@ export const SpaceHomeHeader: React.FC<SpaceHomeHeaderProps> = ({
zIndex: 4,
"&::after": {
bgcolor: spaceHomeSurface,
- borderRadius: "16px",
+ borderRadius: "24px",
content: '""',
height: spaceHomeHeaderBarHeight,
left: "8px",
diff --git a/web/apps/space/src/components/MobileBestToast.tsx b/web/apps/space/src/components/MobileBestToast.tsx
index 1ac1c5641f..0f0d6344a7 100644
--- a/web/apps/space/src/components/MobileBestToast.tsx
+++ b/web/apps/space/src/components/MobileBestToast.tsx
@@ -26,7 +26,7 @@ export const SpaceMobileBestToast: React.FC = () => {
sx={{
alignItems: "center",
bgcolor: spaceHomeSurface,
- borderRadius: "18px",
+ borderRadius: "24px",
boxShadow: "0 12px 32px rgba(0, 0, 0, 0.18)",
boxSizing: "border-box",
color: spaceText,
diff --git a/web/apps/space/src/components/PWAInstallPrompt.tsx b/web/apps/space/src/components/PWAInstallPrompt.tsx
index c60e4aacb9..aab2827817 100644
--- a/web/apps/space/src/components/PWAInstallPrompt.tsx
+++ b/web/apps/space/src/components/PWAInstallPrompt.tsx
@@ -233,7 +233,7 @@ export const SpacePWAPromptBanner: React.FC<SpacePWAPromptBannerProps> = ({
sx={{
alignItems: "center",
bgcolor: spaceHomeSurface,
- borderRadius: "22px",
+ borderRadius: "24px",
boxShadow: "0 12px 32px rgba(0, 0, 0, 0.18)",
color: textBase,
display: "flex",
diff --git a/web/apps/space/src/components/PostReplyControls.tsx b/web/apps/space/src/components/PostReplyControls.tsx
index 286f7b2303..817cef2187 100644
--- a/web/apps/space/src/components/PostReplyControls.tsx
+++ b/web/apps/space/src/components/PostReplyControls.tsx
@@ -116,7 +116,7 @@ export const SpacePostReplyControls: React.FC<SpacePostReplyControlsProps> = ({
sx={{
bgcolor: controlBackground,
border: 0,
- borderRadius: "12px",
+ borderRadius: "16px",
boxSizing: "border-box",
color: textBase,
flex: "1 1 auto",
diff --git a/web/apps/space/src/screens/HomeScreen.tsx b/web/apps/space/src/screens/HomeScreen.tsx
index 1b265e5432..a6a71af4bc 100644
--- a/web/apps/space/src/screens/HomeScreen.tsx
+++ b/web/apps/space/src/screens/HomeScreen.tsx
@@ -1172,7 +1172,7 @@ const FeedItem: React.FC<FeedItemProps> = ({
sx={{
WebkitTapHighlightColor: "transparent",
bgcolor: showFooter ? spaceHomeSurface : "transparent",
- borderRadius: "16px",
+ borderRadius: "24px",
boxSizing: "border-box",
display: "flex",
flexDirection: "column",
@@ -1185,7 +1185,7 @@ const FeedItem: React.FC<FeedItemProps> = ({
sx={{
aspectRatio: frameAspectRatio,
bgcolor: "transparent",
- borderRadius: showFooter ? "16px 16px 0 0" : "16px",
+ borderRadius: showFooter ? "24px 24px 0 0" : "24px",
maxWidth: "100%",
minWidth: 0,
overflow: "hidden",
@@ -1655,7 +1655,7 @@ const FeedItem: React.FC<FeedItemProps> = ({
alignItems: "center",
boxSizing: "border-box",
display: "grid",
- gap: "6px",
+ gap: "8px",
gridTemplateColumns: "minmax(0, 1fr) auto",
minHeight: feedLikeActionSize,
p: "8px",
@@ -1672,7 +1672,7 @@ const FeedItem: React.FC<FeedItemProps> = ({
appearance: "none",
bgcolor: feedActionBackground,
border: 0,
- borderRadius: "12px",
+ borderRadius: "16px",
color: "#C4C4C8",
cursor: canOpenPhoto ? "pointer" : "default",
fontFamily: '"Inter Variable", Inter, sans-serif',
@@ -1741,7 +1741,7 @@ const AddedFriendToast: React.FC<AddedFriendToastProps> = ({
sx={{
alignItems: "center",
bgcolor: spaceHomeSurface,
- borderRadius: "22px",
+ borderRadius: "24px",
boxShadow: "0 12px 32px rgba(0, 0, 0, 0.18)",
boxSizing: "border-box",
color: textBase,
diff --git a/web/apps/space/src/screens/ProfileScreen.tsx b/web/apps/space/src/screens/ProfileScreen.tsx
index bf7773d2b3..e5f122921e 100644
--- a/web/apps/space/src/screens/ProfileScreen.tsx
+++ b/web/apps/space/src/screens/ProfileScreen.tsx
@@ -75,7 +75,7 @@ const profileAvatarSize = 132;
const profileCoverHeight =
profileHeaderHeight + profileAvatarTopOffset + profileAvatarSize / 2;
const photoPlaceholderBackground = spaceSurface;
-const profileCoverRadius = "12px";
+const profileCoverRadius = "24px";
const profilePostLoadRootMargin = "800px 0px";
const publicProfilePostLoadRootMargin = "400px 0px";
interface ProfilePhotoDimensions {