π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[web] Style upload dialog and button to match public album like modal
Anand Baburajan239253d4da2b
diff --git a/web/apps/photos/src/components/Upload.tsx b/web/apps/photos/src/components/Upload.tsxindex ff4eb13dae..a034697ec3 100644--- a/web/apps/photos/src/components/Upload.tsx+++ b/web/apps/photos/src/components/Upload.tsx@@ -15,6 +15,7 @@ import {DialogTitle,Link,Stack,+ styled,Typography,type DialogProps,} from "@mui/material";@@ -1179,10 +1180,19 @@ const UploadTypeSelector: React.FC<UploadTypeSelectorProps> = ({sx: (theme) => ({maxWidth: "375px",p: 1,+ borderRadius: "28px",+ boxShadow: "none",+ border: "1px solid",+ borderColor: "stroke.faint",[theme.breakpoints.down(360)]: { p: 0 },}),},}}+ sx={{+ "& .MuiBackdrop-root": {+ backgroundColor: "rgba(0, 0, 0, 0.5)",+ },+ }}><UploadOptions{...{ intent, pendingUploadType, onSelect, onClose }}@@ -1262,7 +1272,7 @@ const DefaultOptions: React.FC<UploadOptionsProps> = ({<DialogCloseIconButton {...{ onClose }} /></SpacedRow><Box sx={{ p: "12px", pt: "16px" }}>- <Stack sx={{ gap: 0.5 }}>+ <RoundedButtonStack>{intent != "import" && (<RowButtonstartIcon={<ImageOutlinedIcon />}@@ -1297,7 +1307,7 @@ const DefaultOptions: React.FC<UploadOptionsProps> = ({onClick={() => onSelect("zips")}/>)}- </Stack>+ </RoundedButtonStack><Typographysx={{color: "text.muted",@@ -1326,7 +1336,7 @@ const TakeoutOptions: React.FC<<DialogCloseIconButton {...{ onClose }} /></SpacedRow><Stack sx={{ padding: "18px 12px 20px 12px", gap: "16px" }}>- <Stack sx={{ gap: "8px" }}>+ <Stack sx={{ gap: "8px", "& button": { borderRadius: "16px" } }}><FocusVisibleButtoncolor="accent"fullWidth@@ -1357,3 +1367,12 @@ const TakeoutOptions: React.FC<</Stack></>);++const RoundedButtonStack = styled("div")`+ display: flex;+ flex-direction: column;+ gap: 4px;+ & > button {+ border-radius: 16px;+ }+`;diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex 03d1167d54..a630e38960 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -1908,6 +1908,7 @@ const UploadButton: React.FC<ButtonishProps> = ({ onClick }) => {<FocusVisibleButtoncolor="secondary"startIcon={icon}+ sx={{ borderRadius: "16px" }}{...{ onClick, disabled }}>{t("upload")}