Skip to content

Commit 98bd8d3

Browse files
committed
fix: Photoslider now renders responsive images
1 parent b5f8f14 commit 98bd8d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/routes/PhotoSliderSection.svelte

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
import.meta.glob('/assets/events/*.{avif,gif,heif,jpeg,jpg,png,tiff,webp,svg}', {
1313
eager: true,
1414
query: {
15-
enhanced: true
15+
enhanced: true,
16+
w: '600'
1617
}
1718
})
1819
)
@@ -114,7 +115,7 @@
114115
class="h-full w-full object-cover"
115116
src={module.default}
116117
alt="A past event"
117-
sizes="(min-width:1920px) 1280px, (min-width:1080px) 640px, (min-width:768px) 400px"
118+
sizes="(min-width:768px) 400px, (min-width:480px) 600px, 400px"
118119
/>
119120
</div>
120121
{/each}

0 commit comments

Comments
 (0)