fix: show complete Immich photos in advanced mode
This commit is contained in:
1 parent
5df4358f0d
commit
cc1b22f052
2 files changed
+12
-2
No files matched your search
@@ -14,6 +14,11 @@
|
||||
background-color: var(--mantine-color-gray-8);
|
||||
}
|
||||
|
||||
.carouselImage[data-fit="contain"] {
|
||||
object-fit: contain;
|
||||
background-color: var(--mantine-color-black);
|
||||
}
|
||||
|
||||
.photoInfo {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
||||
@@ -153,7 +153,12 @@ function Carousel({
|
||||
return (
|
||||
<Stack w="100%" h="100%" gap={0}>
|
||||
<Box w="100%" style={{ flex: 1, minHeight: 0 }} className={classes.carouselContainer}>
|
||||
<Image src={currentAsset.publicLink} alt={t("albumPhoto")} className={classes.carouselImage} />
|
||||
<Image
|
||||
src={currentAsset.publicLink}
|
||||
alt={t("albumPhoto")}
|
||||
className={classes.carouselImage}
|
||||
data-fit={advanced ? "contain" : "cover"}
|
||||
/>
|
||||
|
||||
{assets.length > 1 && (
|
||||
<Group
|
||||
@@ -219,7 +224,7 @@ function Carousel({
|
||||
{advanced && (
|
||||
<ScrollArea type="never" scrollbarSize={0} px="xs" py={6}>
|
||||
<Group gap={6} wrap="nowrap">
|
||||
{assets.slice(0, 24).map((asset, index) => (
|
||||
{assets.map((asset, index) => (
|
||||
<UnstyledButton
|
||||
key={asset.id}
|
||||
onClick={() => setCurrentIndex(index)}
|
||||
|
||||
Reference in new issue
Block a user