π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathi6a8ca4c2cf24
diff --git a/web/apps/photos/src/components/Collections/CollectionListBar.tsx b/web/apps/photos/src/components/Collections/CollectionListBar.tsxindex 520cff1b89..2e073e3c41 100644--- a/web/apps/photos/src/components/Collections/CollectionListBar.tsx+++ b/web/apps/photos/src/components/Collections/CollectionListBar.tsx@@ -1,6 +1,7 @@import { useIsMobileWidth } from "@/base/hooks";import {IconButtonWithBG,+ Overlay,SpaceBetweenFlex,} from "@ente/shared/components/Container";import useWindowSize from "@ente/shared/hooks/useWindowSize";@@ -16,6 +17,7 @@ import Tooltip from "@mui/material/Tooltip";import {CollectionListBarWrapper,CollectionListWrapper,+ CollectionTile,} from "components/Collections/styledComponents";import { t } from "i18next";import memoize from "memoize-one";@@ -30,12 +32,6 @@ import { CollectionSummary, CollectionSummaryType } from "types/collection";import { ALL_SECTION, COLLECTION_LIST_SORT_BY } from "utils/collection";import CollectionCard from "./CollectionCard";import CollectionListSortBy from "./CollectionListSortBy";-import {- ActiveIndicator,- CollectionBarTile,- CollectionBarTileIcon,- CollectionBarTileText,-} from "./styledComponents";interface CollectionListBarProps {activeCollectionID?: number;@@ -316,6 +312,37 @@ const CollectionListBarCard = (props: CollectionListBarCardProps) => {);};+const ActiveIndicator = styled("div")`+ height: 3px;+ background-color: ${({ theme }) => theme.palette.primary.main};+ margin-top: 18px;+ border-radius: 2px;+`;++const CollectionBarTile = styled(CollectionTile)`+ width: 90px;+ height: 64px;+`;++const CollectionBarTileText = styled(Overlay)`+ padding: 4px;+ background: linear-gradient(+ 0deg,+ rgba(0, 0, 0, 0.1) 0%,+ rgba(0, 0, 0, 0.5) 86.46%+ );+`;++const CollectionBarTileIcon = styled(Overlay)`+ padding: 4px;+ display: flex;+ justify-content: flex-start;+ align-items: flex-end;+ & > .MuiSvgIcon-root {+ font-size: 20px;+ }+`;+function CollectionCardText({ collectionName }) {return (<CollectionBarTileText>diff --git a/web/apps/photos/src/components/Collections/styledComponents.ts b/web/apps/photos/src/components/Collections/styledComponents.tsindex 91dfdc9c58..253b089d3e 100644--- a/web/apps/photos/src/components/Collections/styledComponents.ts+++ b/web/apps/photos/src/components/Collections/styledComponents.ts@@ -51,42 +51,11 @@ export const CollectionTile = styled("div")`user-select: none;`;-export const ActiveIndicator = styled("div")`- height: 3px;- background-color: ${({ theme }) => theme.palette.primary.main};- margin-top: 18px;- border-radius: 2px;-`;--export const CollectionBarTile = styled(CollectionTile)`- width: 90px;- height: 64px;-`;-export const AllCollectionTile = styled(CollectionTile)`width: 150px;height: 150px;`;-export const CollectionBarTileText = styled(Overlay)`- padding: 4px;- background: linear-gradient(- 0deg,- rgba(0, 0, 0, 0.1) 0%,- rgba(0, 0, 0, 0.5) 86.46%- );-`;--export const CollectionBarTileIcon = styled(Overlay)`- padding: 4px;- display: flex;- justify-content: flex-start;- align-items: flex-end;- & > .MuiSvgIcon-root {- font-size: 20px;- }-`;-export const AllCollectionTileText = styled(Overlay)`padding: 8px;background: linear-gradient(