π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
use newer
Manav Rathic71c3e7ef878
diff --git a/web/apps/photos/src/components/Collections/AllCollections/collectionCard.tsx b/web/apps/photos/src/components/Collections/AllCollections/collectionCard.tsxindex 8d8939350d..0976c385b4 100644--- a/web/apps/photos/src/components/Collections/AllCollections/collectionCard.tsx+++ b/web/apps/photos/src/components/Collections/AllCollections/collectionCard.tsx@@ -1,9 +1,11 @@-import { AllCollectionTile } from "@/new/photos/components/ItemCards";+import {+ AllCollectionTile,+ LargeTileTextOverlay,+} from "@/new/photos/components/ItemCards";import type { CollectionSummary } from "@/new/photos/types/collection";import { Typography } from "@mui/material";import { t } from "i18next";import CollectionCard from "../CollectionCard";-import { AllCollectionTileText } from "../styledComponents";interface Iprops {collectionSummary: CollectionSummary;@@ -23,12 +25,12 @@ export default function AllCollectionCard({onClick={() => onCollectionClick(collectionSummary.id)}isScrolling={isScrolling}>- <AllCollectionTileText>+ <LargeTileTextOverlay><Typography>{collectionSummary.name}</Typography><Typography variant="small" color="text.muted">{t("photos_count", { count: collectionSummary.fileCount })}</Typography>- </AllCollectionTileText>+ </LargeTileTextOverlay></CollectionCard>);}diff --git a/web/apps/photos/src/components/Collections/CollectionSelector/CollectionCard.tsx b/web/apps/photos/src/components/Collections/CollectionSelector/CollectionCard.tsxindex 5299703ecb..c65994509e 100644--- a/web/apps/photos/src/components/Collections/CollectionSelector/CollectionCard.tsx+++ b/web/apps/photos/src/components/Collections/CollectionSelector/CollectionCard.tsx@@ -1,8 +1,10 @@-import { AllCollectionTile } from "@/new/photos/components/ItemCards";+import {+ AllCollectionTile,+ LargeTileTextOverlay,+} from "@/new/photos/components/ItemCards";import type { CollectionSummary } from "@/new/photos/types/collection";import { Typography } from "@mui/material";import CollectionCard from "../CollectionCard";-import { AllCollectionTileText } from "../styledComponents";interface Iprops {collectionSummary: CollectionSummary;@@ -19,9 +21,9 @@ export default function CollectionSelectorCard({coverFile={collectionSummary.coverFile}onClick={() => onCollectionClick(collectionSummary.id)}>- <AllCollectionTileText>+ <LargeTileTextOverlay><Typography>{collectionSummary.name}</Typography>- </AllCollectionTileText>+ </LargeTileTextOverlay></CollectionCard>);}diff --git a/web/apps/photos/src/components/Collections/styledComponents.ts b/web/apps/photos/src/components/Collections/styledComponents.tsdeleted file mode 100644index 8621f8fd4f..0000000000--- a/web/apps/photos/src/components/Collections/styledComponents.ts+++ /dev/null@@ -1,11 +0,0 @@-import { Overlay } from "@ente/shared/components/Container";-import { styled } from "@mui/material";--export const AllCollectionTileText = styled(Overlay)`- padding: 8px;- background: linear-gradient(- 0deg,- rgba(0, 0, 0, 0.1) 0%,- rgba(0, 0, 0, 0.5) 86.46%- );-`;diff --git a/web/packages/new/photos/components/ItemCards.tsx b/web/packages/new/photos/components/ItemCards.tsxindex a14e2b243f..fa86e11fcc 100644--- a/web/packages/new/photos/components/ItemCards.tsx+++ b/web/packages/new/photos/components/ItemCards.tsx@@ -134,3 +134,16 @@ export const TileTextOverlay = styled(ItemTileOverlay)`rgba(0, 0, 0, 0.5) 86.46%);`;++/**+ * A variation of {@link TileTextOverlay} for use with larger tiles like the+ * {@link AllCollectionTile}.+ */+export const LargeTileTextOverlay = styled(ItemTileOverlay)`+ padding: 8px;+ background: linear-gradient(+ 0deg,+ rgba(0, 0, 0, 0.1) 0%,+ rgba(0, 0, 0, 0.5) 86.46%+ );+`;