π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Move icon to the right
Manav Rathif5ebecfa699b
diff --git a/web/packages/base/components/MiniDialog.tsx b/web/packages/base/components/MiniDialog.tsxindex bf5408ca70..29a5b7243e 100644--- a/web/packages/base/components/MiniDialog.tsx+++ b/web/packages/base/components/MiniDialog.tsx@@ -22,24 +22,24 @@ import React, { useState } from "react";* Customize the contents of an {@link AttributedMiniDialog}.*/export interface MiniDialogAttributes {- /**- * An optional icon shown above the title.- */- icon?: React.ReactNode;/*** The dialog's title.*- * While optional, it is usually provided. It will almost always be a- * string, but the prop accepts any React node to allow passing a i18next- * <Trans /> component.+ * This will be usually be a string, but the prop accepts any React node to+ * allow passing a i18next <Trans /> component.*/title?: React.ReactNode;+ /**+ * An optional component shown next to the title.+ */+ icon?: React.ReactNode;staticBackdrop?: boolean;nonClosable?: boolean;/*** The dialog's message.*- * Similar to {@link title}, this is usually provided, and a string.+ * This will be usually be a string, but the prop accepts any React node to+ * allow passing a i18next <Trans /> component.*/content?: React.ReactNode;/**@@ -125,24 +125,27 @@ export const AttributedMiniDialog: React.FC<}}{...rest}>- {attributes.icon && (+ {(attributes.icon || attributes.title) && (<Boxsx={{+ display: "flex",+ justifyContent: "space-between","& > svg": {fontSize: "32px",+ color: "text.faint",},- color: "text.muted",- padding: "20px 16px 0px 16px",+ padding: "24px 16px 16px 16px",}}>+ {attributes.title && (+ <DialogTitle sx={{ "&&&": { padding: 0 } }}>+ {attributes.title}+ </DialogTitle>+ )}{attributes.icon}</Box>)}- {attributes.title && (- <DialogTitle sx={{ "&&&": { paddingBlock: "24px 16px" } }}>- {attributes.title}- </DialogTitle>- )}+<DialogContent>{attributes.content && (<Typography color="text.muted">