π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Tiles
Manav Rathi2e2c972a844f
diff --git a/web/packages/new/photos/components/Tiles.tsx b/web/packages/new/photos/components/Tiles.tsxindex a6a44d5da5..ad800ad6e1 100644--- a/web/packages/new/photos/components/Tiles.tsx+++ b/web/packages/new/photos/components/Tiles.tsx@@ -142,7 +142,7 @@ export const BaseTileButton = styled(UnstyledButton)`/* Buttons reset this to center */text-align: inherit;- /* Rest of this is mostly verbatim from ItemTile ... */+ /* Rest of this is mostly verbatim from BaseTile ... */display: flex;/* Act as container for the absolutely positioned ItemTileOverlays. */diff --git a/web/packages/new/photos/pages/duplicates.tsx b/web/packages/new/photos/pages/duplicates.tsxindex 6a94866379..bb8b55ede5 100644--- a/web/packages/new/photos/pages/duplicates.tsx+++ b/web/packages/new/photos/pages/duplicates.tsx@@ -37,6 +37,7 @@ import {VariableSizeList,type ListChildComponentProps,} from "react-window";+import { BaseTile, ItemCard } from "../components/Tiles";import {computeThumbnailGridLayoutParams,type ThumbnailGridLayoutParams,@@ -500,21 +501,24 @@ const ListItem: React.FC<ListChildComponentProps<DuplicatesListItemData>> =</Stack><ItemGrid {...{ layoutParams }}>{items.map((item, j) => (- <div+ <ItemCardkey={j}- style={{- background: "red",- border: "2px solid green",- }}+ TileComponent={ItemTile}+ coverFile={item.file}>- {item.collectionName}- </div>+ {/* {item.collectionName} */}+ </ItemCard>))}</ItemGrid></Stack>);}, areEqual);+export const ItemTile = styled(BaseTile)`+ /* The thumbnails are not interactable, reset the pointer */+ cursor: initial;+`;+type ItemGridProps = Pick<DuplicatesListItemData, "layoutParams">;const ItemGrid = styled("div", {@@ -523,7 +527,8 @@ const ItemGrid = styled("div", {({ layoutParams }) => `display: grid;padding-inline: ${layoutParams.paddingInline}px;- grid-template-columns: repeat(${layoutParams.columns}, 1fr);+ grid-template-columns: repeat(${layoutParams.columns}, ${layoutParams.itemWidth}px);+ grid-auto-rows: ${layoutParams.itemHeight}px;gap: ${layoutParams.gap}px;`,);