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);
|
background-color: var(--mantine-color-gray-8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.carouselImage[data-fit="contain"] {
|
||||||
|
object-fit: contain;
|
||||||
|
background-color: var(--mantine-color-black);
|
||||||
|
}
|
||||||
|
|
||||||
.photoInfo {
|
.photoInfo {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|||||||
@@ -153,7 +153,12 @@ function Carousel({
|
|||||||
return (
|
return (
|
||||||
<Stack w="100%" h="100%" gap={0}>
|
<Stack w="100%" h="100%" gap={0}>
|
||||||
<Box w="100%" style={{ flex: 1, minHeight: 0 }} className={classes.carouselContainer}>
|
<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 && (
|
{assets.length > 1 && (
|
||||||
<Group
|
<Group
|
||||||
@@ -219,7 +224,7 @@ function Carousel({
|
|||||||
{advanced && (
|
{advanced && (
|
||||||
<ScrollArea type="never" scrollbarSize={0} px="xs" py={6}>
|
<ScrollArea type="never" scrollbarSize={0} px="xs" py={6}>
|
||||||
<Group gap={6} wrap="nowrap">
|
<Group gap={6} wrap="nowrap">
|
||||||
{assets.slice(0, 24).map((asset, index) => (
|
{assets.map((asset, index) => (
|
||||||
<UnstyledButton
|
<UnstyledButton
|
||||||
key={asset.id}
|
key={asset.id}
|
||||||
onClick={() => setCurrentIndex(index)}
|
onClick={() => setCurrentIndex(index)}
|
||||||
|
|||||||
Reference in new issue
Block a user