This commit is contained in:
Manav Rathi
2025-06-11 14:16:29 +05:30
parent 069958d220
commit 6937701fa4
3 changed files with 12 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ import Photo, { default as PhotoIcon } from "@mui/icons-material/Photo";
import PublicIcon from "@mui/icons-material/Public";
import RemoveCircleOutlineIcon from "@mui/icons-material/RemoveCircleOutline";
import WorkspacesIcon from "@mui/icons-material/Workspaces";
import { Box, Dialog, Stack, styled, Typography } from "@mui/material";
import { Dialog, Stack, styled, Typography } from "@mui/material";
import NumberAvatar from "@mui/material/Avatar";
import TextField from "@mui/material/TextField";
import Avatar from "components/pages/gallery/Avatar";
@@ -590,7 +590,7 @@ const AddParticipantForm: React.FC<AddParticipantFormProps> = ({
return (
<form onSubmit={formik.handleSubmit}>
<Stack sx={{ gap: "24px", py: "20px", px: 2 }}>
<Stack sx={{ gap: 1, py: "20px", px: 2 }}>
<div>
<RowButtonGroupTitle>
{t("add_new_email")}
@@ -650,18 +650,16 @@ const AddParticipantForm: React.FC<AddParticipantFormProps> = ({
</RowButtonGroup>
</div>
)}
</Stack>
<Box sx={{ px: 2 }}>
<LoadingButton
type="submit"
color="accent"
fullWidth
loading={formik.isSubmitting}
sx={{ mt: 4, mb: 4 }}
fullWidth
sx={{ my: 6 }}
>
{submitButtonTitle}
</LoadingButton>
</Box>
</Stack>
</form>
);
};
@@ -752,7 +750,7 @@ const ManageEmailShare: React.FC<ManageEmailShareProps> = ({
title={collection.name}
caption={t("participants_count", { count: peopleCount })}
>
<Stack sx={{ gap: "24px", py: "20px", px: "12px" }}>
<Stack sx={{ gap: 3, py: "20px", px: "12px" }}>
<Stack>
<RowButtonGroupTitle icon={<AdminPanelSettingsIcon />}>
{t("owner")}

View File

@@ -694,7 +694,7 @@ const Account: React.FC<AccountProps> = ({
onRootClose={handleRootClose}
title={t("account")}
>
<Stack sx={{ px: "16px", py: "8px", gap: "24px" }}>
<Stack sx={{ px: 2, py: 1, gap: 3 }}>
<RowButtonGroup>
<RowButton
endIcon={
@@ -781,7 +781,7 @@ const Preferences: React.FC<NestedSidebarDrawerVisibilityProps> = ({
onRootClose={handleRootClose}
title={t("preferences")}
>
<Stack sx={{ px: "16px", py: "8px", gap: "24px" }}>
<Stack sx={{ px: 2, py: 1, gap: 3 }}>
<LanguageSelector />
<ThemeSelector />
<Divider sx={{ my: "2px", opacity: 0.1 }} />
@@ -970,7 +970,7 @@ const MapSettings: React.FC<NestedSidebarDrawerVisibilityProps> = ({
onRootClose={handleRootClose}
title={t("map")}
>
<Stack sx={{ px: "16px", py: "20px" }}>
<Stack sx={{ px: 2, py: "20px" }}>
<RowButtonGroup>
<RowSwitch
label={t("enabled")}
@@ -1021,7 +1021,7 @@ const AdvancedSettings: React.FC<NestedSidebarDrawerVisibilityProps> = ({
onRootClose={handleRootClose}
title={t("advanced")}
>
<Stack sx={{ px: "16px", py: "20px", gap: "24px" }}>
<Stack sx={{ px: 2, py: "20px", gap: 3 }}>
<Stack>
<RowButtonGroup>
<RowSwitch
@@ -1089,7 +1089,7 @@ const Help: React.FC<NestedSidebarDrawerVisibilityProps> = ({
onRootClose={handleRootClose}
title={t("help")}
>
<Stack sx={{ px: "16px", py: "8px", gap: "24px" }}>
<Stack sx={{ px: 2, py: 1, gap: 3 }}>
<RowButtonGroup>
<RowButton
endIcon={<InfoOutlinedIcon />}

View File

@@ -108,7 +108,7 @@ export const EnableML: React.FC<EnableMLProps> = ({
openURL("https://help.ente.io/photos/features/machine-learning");
return (
<Stack sx={{ gap: "32px", py: "20px", px: "16px" }}>
<Stack sx={{ gap: "32px", py: "20px", px: 2 }}>
<Typography sx={{ color: "text.muted" }}>
{t("ml_search_description")}
</Typography>