Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

row-reverse is (a) infrequently needed, and (b) causes a accessibility disconnect

Manav Rathic7191ae7f0e2
diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsx
index db393b0056..f81dd090a0 100644
--- a/web/apps/photos/src/components/Sidebar/index.tsx
+++ b/web/apps/photos/src/components/Sidebar/index.tsx
@@ -621,7 +621,6 @@ const ExitSection: React.FC = () => {
showMiniDialog({
title: 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.tsx
index ff124a035e..2ae838f7ee 100644
--- a/web/packages/base/components/MiniDialog.tsx
+++ b/web/packages/base/components/MiniDialog.tsx
@@ -104,8 +104,6 @@ export interface MiniDialogAttributes {
* Set this to `false` to omit the cancel button altogether.
*/
cancel?: string | false;
- /** The direction in which the buttons are stacked. Default is "column". */
- buttonDirection?: "row" | "column";
}
type MiniDialogProps = Omit<DialogProps, "onClose"> & {
@@ -193,14 +191,7 @@ export const AttributedMiniDialog: React.FC<
</Typography>
)}
{children}
- <Stack
- sx={{ paddingBlockStart: "24px", gap: "12px" }}
- direction={
- attributes.buttonDirection == "row"
- ? "row-reverse"
- : "column"
- }
- >
+ <Stack sx={{ paddingBlockStart: "24px", gap: "12px" }}>
{phase == "failed" && (
<Typography variant="small" color="critical.main">
{t("generic_error")}
diff --git a/web/packages/new/photos/components/MLSettings.tsx b/web/packages/new/photos/components/MLSettings.tsx
index 2401899824..4099962db3 100644
--- a/web/packages/new/photos/components/MLSettings.tsx
+++ b/web/packages/new/photos/components/MLSettings.tsx
@@ -289,7 +289,6 @@ const ManageML: React.FC<ManageMLProps> = ({ mlStatus, onDisableML }) => {
color: "critical",
action: onDisableML,
},
- buttonDirection: "row",
});
return (