Skip to content

armgit / ente

Public Imported from GitHub
0

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

occam

Manav Rathi35a47828e95d
diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.ts
index ba3e5eb7b8..8dfb1603e5 100644
--- a/web/packages/base/components/utils/mui-theme.d.ts
+++ b/web/packages/base/components/utils/mui-theme.d.ts
@@ -27,14 +27,13 @@ declare module "@mui/material/styles" {
}
interface TypographyVariants {
- large: React.CSSProperties;
body: React.CSSProperties;
small: React.CSSProperties;
mini: React.CSSProperties;
tiny: React.CSSProperties;
}
+
interface TypographyVariantsOptions {
- large?: React.CSSProperties;
body?: React.CSSProperties;
small?: React.CSSProperties;
mini?: React.CSSProperties;
@@ -53,7 +52,6 @@ declare module "@mui/material/Typography" {
button: false;
overline: false;
// Add our custom variants.
- large: true;
body: true;
small: true;
mini: true;
diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.ts
index 451de262d4..3209b8175e 100644
--- a/web/packages/base/components/utils/theme.ts
+++ b/web/packages/base/components/utils/theme.ts
@@ -364,10 +364,6 @@ const typography: TypographyOptions = {
lineHeight: "22px",
fontWeight: 600 /* medium */,
},
- large: {
- fontSize: "18px",
- lineHeight: "22px",
- },
body: {
fontSize: "16px",
lineHeight: "20px",
@@ -413,7 +409,6 @@ const getComponents = (
variant: "body",
// Map all our custom variants to <p>.
variantMapping: {
- large: "p",
body: "p",
small: "p",
mini: "p",
diff --git a/web/packages/new/photos/components/gallery/index.tsx b/web/packages/new/photos/components/gallery/index.tsx
index dda0130e07..a7f252a424 100644
--- a/web/packages/new/photos/components/gallery/index.tsx
+++ b/web/packages/new/photos/components/gallery/index.tsx
@@ -38,7 +38,7 @@ export const SearchResultsHeader: React.FC<SearchResultsHeaderProps> = ({
fileCount,
}) => (
<GalleryItemsHeaderAdapter>
- <Typography variant="large" sx={{ color: "text.muted" }}>
+ <Typography variant="h6" sx={{ fontWeight: "regular", color: "text.muted" }}>
{t("search_results")}
</Typography>
<GalleryItemsSummary
diff --git a/web/packages/new/photos/pages/duplicates.tsx b/web/packages/new/photos/pages/duplicates.tsx
index 11c00ed651..f61040350f 100644
--- a/web/packages/new/photos/pages/duplicates.tsx
+++ b/web/packages/new/photos/pages/duplicates.tsx
@@ -359,7 +359,7 @@ const Navbar: React.FC<NavbarProps> = ({
<ArrowBackIcon />
</IconButton>
</Box>
- <Typography variant="large">{t("remove_duplicates")}</Typography>
+ <Typography variant="h6">{t("remove_duplicates")}</Typography>
<Stack direction="row" sx={{ gap: "4px" }}>
<SortMenu {...{ sortOrder, onChangeSortOrder }} />
<OptionsMenu {...{ onDeselectAll }} />