π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use standard components
Manav Rathi0dd5fd6d23a9
diff --git a/web/packages/base/components/MiniDialog.tsx b/web/packages/base/components/MiniDialog.tsxindex efac413e7c..cc628bacdb 100644--- a/web/packages/base/components/MiniDialog.tsx+++ b/web/packages/base/components/MiniDialog.tsx@@ -9,6 +9,8 @@ import type { ButtonProps } from "@mui/material";import {Box,Dialog,+ DialogContent,+ DialogTitle,Stack,Typography,type DialogProps,@@ -259,19 +261,17 @@ export function DialogBoxV2({PaperProps={{...PaperProps,sx: {- padding: "8px 12px",+ // padding: "8px 12px",maxWidth: "360px",...PaperProps?.sx,},}}{...rest}>- <Stack spacing={"19px"} p={"16px"}>- <Typography variant="large" fontWeight={"bold"}>- {title}- </Typography>- {children}- </Stack>+ <DialogTitle sx={{ "&&&": { paddingBlock: "18px 0" } }}>+ {title}+ </DialogTitle>+ <DialogContent>{children}</DialogContent></Dialog>);}diff --git a/web/packages/shared/themes/components.ts b/web/packages/shared/themes/components.tsindex d117d9043a..d807f02f45 100644--- a/web/packages/shared/themes/components.ts+++ b/web/packages/shared/themes/components.ts@@ -52,7 +52,7 @@ export const getComponents = (// 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.+ // defaults, which just doesn't work well with our designs."& .MuiDialogTitle-root": {// MUI default is '16px 24px'.padding: "16px",@@ -66,9 +66,9 @@ export const getComponents = (overflowY: "auto",},"& .MuiDialogActions-root": {- // MUI default is way since they cluster the buttons to the- // right, our designs usually want the buttons to align with- // the heading / content.+ // MUI default is way off for us since they cluster the+ // buttons to the right, while our designs usually want the+ // buttons to align with the heading / content.padding: "16px",},".MuiDialogTitle-root + .MuiDialogContent-root": {