From 80e26b10b7b3cc77b7b99385e6ee574dd1f31990 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Thu, 25 Nov 2021 17:25:56 +0530 Subject: [PATCH 1/2] fix width and height missing from photoswipe items --- src/components/PhotoFrame.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/PhotoFrame.tsx b/src/components/PhotoFrame.tsx index ffd4bf8ad..d75947e9f 100644 --- a/src/components/PhotoFrame.tsx +++ b/src/components/PhotoFrame.tsx @@ -152,6 +152,8 @@ const PhotoFrame = ({ .map((item, index) => ({ ...item, dataIndex: index, + w: window.innerWidth, + h: window.innerHeight, ...(item.deleteBy && { title: constants.AUTOMATIC_BIN_DELETE_MESSAGE( formatDateRelative(item.deleteBy / 1000) From 3d713f733b108ecab01b9e00f8fac90bc7de83b2 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Thu, 25 Nov 2021 19:47:47 +0530 Subject: [PATCH 2/2] update photoswipe --- thirdparty/photoswipe | 2 +- yarn.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/thirdparty/photoswipe b/thirdparty/photoswipe index 443b1e393..b1766d384 160000 --- a/thirdparty/photoswipe +++ b/thirdparty/photoswipe @@ -1 +1 @@ -Subproject commit 443b1e393aa37899373b71272e4bcf191529bb74 +Subproject commit b1766d38475659c17cf669e2b27787d15f8957b1 diff --git a/yarn.lock b/yarn.lock index 580621f0a..aefbf3e4d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5048,7 +5048,7 @@ peek-readable@^4.0.1: integrity sha512-7qmhptnR0WMSpxT5rMHG9bW/mYSR1uqaPFj2MHvT+y/aOUu6msJijpKt5SkTDKySwg65OWG2JwTMBlgcbwMHrQ== "photoswipe@file:./thirdparty/photoswipe": - version "4.1.3" + version "4.1.4" picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3: version "2.3.0"