π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Reintroduce row, but deviate from material to retain accessibility
Manav Rathi04b61ddb21ed
diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsxindex 41b5fbbfe4..caa3f708e8 100644--- a/web/apps/photos/src/components/Sidebar/index.tsx+++ b/web/apps/photos/src/components/Sidebar/index.tsx@@ -599,6 +599,7 @@ const ExitSection: React.FC = () => {showMiniDialog({message: t("logout_message"),continue: { text: t("logout"), color: "critical", action: logout },+ buttonDirection: "row",});return (diff --git a/web/packages/base/components/MiniDialog.tsx b/web/packages/base/components/MiniDialog.tsxindex 2793f12f18..4a740cd482 100644--- a/web/packages/base/components/MiniDialog.tsx+++ b/web/packages/base/components/MiniDialog.tsx@@ -108,6 +108,8 @@ export interface MiniDialogAttributes {text: string;action: () => void;};+ /** The direction in which the buttons are stacked. Default is "column". */+ buttonDirection?: "row" | "column";}type MiniDialogProps = Omit<DialogProps, "onClose"> & {@@ -207,7 +209,10 @@ export const AttributedMiniDialog: React.FC<</Typography>)}{children}- <Stack sx={{ paddingBlockStart: "24px", gap: "12px" }}>+ <Stack+ sx={{ paddingBlockStart: "24px", gap: "12px" }}+ direction={attributes.buttonDirection ?? "column"}+ >{phase == "failed" && (<Typography variant="small" color="critical.main">{t("generic_error")}