feat: redesign import-shared page and support password-protected links
Redesign import-shared with sticky import bar, dense gallery grid, progress bar, and cleaner landing state. Add password-protected shared link support - detects 401 "Password required" from Immich and shows a password input. Also reduce asset grid spacing and replace "Open in Immich" text with a link icon.
This commit is contained in:
1 parent
2ff863b296
commit
15f90121a1
4 files changed
+493
-424
No files matched your search
@@ -301,6 +301,8 @@ const AssetGrid = forwardRef<AssetGridRef, AssetGridProps>(({ assets, isInternal
|
||||
photos={images}
|
||||
targetRowHeight={150}
|
||||
rowConstraints={{ singleRowMaxHeight: 300 }}
|
||||
spacing={2}
|
||||
padding={0}
|
||||
onClick={({ index, event, photo }) => handleClick(index, photo, event)}
|
||||
render={{
|
||||
image: renderImage,
|
||||
@@ -309,10 +311,10 @@ const AssetGrid = forwardRef<AssetGridRef, AssetGridProps>(({ assets, isInternal
|
||||
href={exImmichUrl + "/photos/" + photo.id}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="absolute bottom-1 left-1 bg-black/60 text-yellow-300 text-xs px-2 py-0.5 rounded"
|
||||
className="absolute bottom-1 left-1 bg-black/60 p-1 rounded"
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
Open in Immich
|
||||
<ExternalLink className="h-3.5 w-3.5 text-white" />
|
||||
</a>
|
||||
),
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user