π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Doc
Manav Rathiffbe03c28362
diff --git a/web/packages/new/photos/components/mui/Dialog.tsx b/web/packages/new/photos/components/mui/Dialog.tsxindex 1679b9022d..c45f6428a7 100644--- a/web/packages/new/photos/components/mui/Dialog.tsx+++ b/web/packages/new/photos/components/mui/Dialog.tsx@@ -1,31 +1,7 @@import { DialogTitle, styled } from "@mui/material";/**- * A DialogTitle component that resets global {@link DialogTitle} padding- * overrides.- *- * This component is not meant for use in particular, but rather serves as a- * documentation point. There are following global styleOverrides that affect- * the layout of content within the Dialog:- *- * "& .MuiDialogTitle-root": {- * padding: "16px",- * },- * "& .MuiDialogContent-root": {- * padding: "16px",- * overflowY: "overlay",- * },- * "& .MuiDialogActions-root": {- * padding: "16px",- * },- * ".MuiDialogTitle-root + .MuiDialogContent-root": {- * paddingTop: "16px",- * },- *- * However, in practice, each dialog ends up being bespoke to some extent, and- * these global overrides come in the way. For now, one approach we can try is- * to reset this padding whenever possible, so that in the future we can modify- * the global defaults (or remove them altogether).+ * TODO: Remove me.*/export const DialogTitleV3 = styled(DialogTitle)`"&&&": {diff --git a/web/packages/shared/themes/components.ts b/web/packages/shared/themes/components.tsindex d0b5f4c495..73827b48df 100644--- a/web/packages/shared/themes/components.ts+++ b/web/packages/shared/themes/components.ts@@ -47,14 +47,27 @@ export const getComponents = ("& .MuiDialog-paper": {filter: getDropShadowStyle(colors.shadows?.float),},+ // Reset the MUI default paddings to 16px everywhere.+ //+ // This is not a great choice either, usually most dialogs, for+ // one reason or the other, will need to customize this padding+ // anyway. But not resetting it to 16px leaves it at the MUI+ // defaults, which just don't work with our designs."& .MuiDialogTitle-root": {+ // MUI default is '16px 24px'.padding: "16px",},"& .MuiDialogContent-root": {+ // MUI default is '20px 24px' / '16px 24px'.padding: "16px",- overflowY: "overlay",+ // If the contents of the dialog's contents exceed the+ // available height, show a scrollbar just for the contents+ // instead of the entire dialog.+ overflowY: "auto",},"& .MuiDialogActions-root": {+ // MUI default is way different, our designs usually want+ // the buttons to align with the heading / content.padding: "16px",},".MuiDialogTitle-root + .MuiDialogContent-root": {