From cc04a48d2615f3bef9ed72bbde0bfd04aa4c90f4 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Sun, 6 Feb 2022 15:22:19 +0530 Subject: [PATCH 1/6] send correct header for video download --- src/services/publicCollectionDownloadManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/publicCollectionDownloadManager.ts b/src/services/publicCollectionDownloadManager.ts index 71a3a3cdb..f9ab95846 100644 --- a/src/services/publicCollectionDownloadManager.ts +++ b/src/services/publicCollectionDownloadManager.ts @@ -144,7 +144,7 @@ class PublicCollectionDownloadManager { } const resp = await fetch(getPublicCollectionFileURL(file.id), { headers: { - 'X-Auth-Token': token, + 'X-Auth-Access-Token': token, }, }); const reader = resp.body.getReader(); From c7bec04603ef5514687f9ae9698d6080ffe552d6 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Sun, 6 Feb 2022 15:23:02 +0530 Subject: [PATCH 2/6] update PHOTOSWIPE_HASH_SUFFIX --- src/components/PhotoFrame.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PhotoFrame.tsx b/src/components/PhotoFrame.tsx index 0f416abd5..b5ab73aa3 100644 --- a/src/components/PhotoFrame.tsx +++ b/src/components/PhotoFrame.tsx @@ -50,7 +50,7 @@ const EmptyScreen = styled.div` } `; -const PHOTOSWIPE_HASH_SUFFIX = '&photoswipe-opened'; +const PHOTOSWIPE_HASH_SUFFIX = '&opened'; interface Props { files: EnteFile[]; From 99bd6d71fb702e25095f0c97bbe5ac7417dc70af Mon Sep 17 00:00:00 2001 From: Abhinav Date: Sun, 6 Feb 2022 16:02:10 +0530 Subject: [PATCH 3/6] fix file info UI --- src/components/Container.ts | 2 +- src/components/PhotoSwipe/PhotoSwipe.tsx | 54 ++++++++++++++---------- 2 files changed, 32 insertions(+), 24 deletions(-) diff --git a/src/components/Container.ts b/src/components/Container.ts index b9d207fcb..9ec7b7faa 100644 --- a/src/components/Container.ts +++ b/src/components/Container.ts @@ -50,7 +50,7 @@ export const Value = styled.div<{ width?: string }>` justify-content: flex-start; align-items: center; width: ${(props) => props.width ?? '30%'}; - text-align: center; + color: #ddd; `; diff --git a/src/components/PhotoSwipe/PhotoSwipe.tsx b/src/components/PhotoSwipe/PhotoSwipe.tsx index 9b3ca6281..e7d65d4fc 100644 --- a/src/components/PhotoSwipe/PhotoSwipe.tsx +++ b/src/components/PhotoSwipe/PhotoSwipe.tsx @@ -148,7 +148,14 @@ function RenderCreationTime({ <> - + {isInEditMode ? ( - - {!shouldDisableEdits && + {!shouldDisableEdits && ( + (!isInEditMode ? ( - - - + + + ) : ( - <> - - {loading ? ( - - ) : ( - - )} - - - - - - ))} - + <> + + {loading ? ( + + ) : ( + + )} + + + + + + )) + + )} ); @@ -323,7 +331,7 @@ function RenderFileName({ {!isInEditMode ? ( <> - + {getFileTitle(filename, extension)} From f5f7ea726a6d00a9babc1827eb205301b41faa8b Mon Sep 17 00:00:00 2001 From: Abhinav Date: Sun, 6 Feb 2022 16:06:36 +0530 Subject: [PATCH 4/6] dont show info button for shared albums --- src/components/PhotoSwipe/PhotoSwipe.tsx | 34 +++++++++++++----------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/components/PhotoSwipe/PhotoSwipe.tsx b/src/components/PhotoSwipe/PhotoSwipe.tsx index e7d65d4fc..9032f4f59 100644 --- a/src/components/PhotoSwipe/PhotoSwipe.tsx +++ b/src/components/PhotoSwipe/PhotoSwipe.tsx @@ -743,11 +743,13 @@ function PhotoSwipe(props: Iprops) { }} /> )} -