π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
do both transitions simultaneously
Manav Rathifbaa36074145
diff --git a/web/packages/new/photos/components/utils/thumbnail-grid-layout.ts b/web/packages/new/photos/components/utils/thumbnail-grid-layout.tsindex b273efce87..62cc057699 100644--- a/web/packages/new/photos/components/utils/thumbnail-grid-layout.ts+++ b/web/packages/new/photos/components/utils/thumbnail-grid-layout.ts@@ -6,6 +6,12 @@ export interface ThumbnailGridLayoutParams {* that other parts of the code downstream can also get at it if needed.*/containerWidth: number;+ /**+ * `true` if the container width is classified as a smaller screen for the+ * purpose of the thumbnail grid, and some dimensions are reduced to account+ * for the lesser space available to us.+ */+ isSmallerLayout: boolean;/*** The inline padding (px) of the thumbnail grid.*/@@ -39,6 +45,10 @@ export interface ThumbnailGridLayoutParams {export const computeThumbnailGridLayoutParams = (containerWidth: number,): ThumbnailGridLayoutParams => {+ const isSmallerLayout = !(+ containerWidth >+ MIN_COLUMNS * IMAGE_CONTAINER_MAX_WIDTH+ );const paddingInline = getGapFromScreenEdge(containerWidth);const fittableColumns = getFractionFittableColumns(containerWidth);@@ -54,6 +64,7 @@ export const computeThumbnailGridLayoutParams = (return {containerWidth,+ isSmallerLayout,paddingInline,columns,itemWidth,diff --git a/web/packages/new/photos/pages/duplicates.tsx b/web/packages/new/photos/pages/duplicates.tsxindex e7221f3d74..901059fc2f 100644--- a/web/packages/new/photos/pages/duplicates.tsx+++ b/web/packages/new/photos/pages/duplicates.tsx@@ -501,7 +501,7 @@ const ListItem: React.FC<ListChildComponentProps<DuplicatesListItemData>> =// For smaller screens, hide to divider to reduce visual noise. For// larger screens, the divider is helpful in guiding the user's eyes to// the checkbox which is otherwise at the right end of the header.- const showDivider = layoutParams.containerWidth > 700;+ const hideDivider = layoutParams.isSmallerLayout;const duplicateGroup = duplicateGroups[index]!;const items = duplicateGroup.items;@@ -534,7 +534,7 @@ const ListItem: React.FC<ListChildComponentProps<DuplicatesListItemData>> =<Dividervariant="middle"sx={{- opacity: showDivider ? 0.8 : 0,+ opacity: hideDivider ? 0 : 0.8,marginBlock: "4px 20px",}}/>