Skip to content

Commit e7d88b5

Browse files
authored
Merge pull request #473 from XanderStrike/main
Respect ImageFill configuration in splitview layout
2 parents 85d055a + 31b0add commit e7d88b5

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

immichFrame.Web/src/lib/components/elements/image-component.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
<div class="grid grid-cols-2">
8181
<div id="image_portrait_1" class="relative grid border-r-2 border-primary h-dvh-safe">
8282
<Image
83-
multi={true}
8483
image={images[0]}
8584
{interval}
8685
{showLocation}
@@ -96,7 +95,6 @@
9695
</div>
9796
<div id="image_portrait_2" class="relative grid border-l-2 border-primary h-dvh-safe">
9897
<Image
99-
multi={true}
10098
image={images[1]}
10199
{interval}
102100
{showLocation}

immichFrame.Web/src/lib/components/elements/image.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
imageZoom: boolean;
2121
imagePan: boolean;
2222
interval: number;
23-
multi?: boolean;
2423
showInfo: boolean;
2524
}
2625
@@ -35,7 +34,6 @@
3534
imageZoom,
3635
imagePan,
3736
interval,
38-
multi = false,
3937
showInfo = $bindable(false)
4038
}: Props = $props();
4139
@@ -165,7 +163,7 @@
165163
{/if}
166164

167165
<img
168-
class="{multi || imageFill
166+
class="{imageFill
169167
? 'w-screen max-h-screen h-dvh-safe object-cover'
170168
: 'max-h-screen h-dvh-safe max-w-full object-contain'} w-full h-full"
171169
src={image[0]}

0 commit comments

Comments
 (0)