UX: some style tweaks to images

This commit is contained in:
Pieter Vander Vennet 2024-01-16 04:21:46 +01:00
parent b26ffaaf22
commit 76f6b1f21f
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@
export let previewedImage: UIEventSource<ProvidedImage> = undefined
</script>
<div class="relative">
<div class="relative shrink-0">
<img
bind:this={imgEl}
class={imgClass ?? ""}

View file

@ -16,7 +16,7 @@
panzoomInstance = panzoom(panzoomEl, {
bounds: true,
boundsPadding: 0.49,
minZoom: 1,
minZoom: 0.1,
maxZoom: 25,
initialZoom: 1.0,
})
@ -28,7 +28,7 @@
<img
bind:this={panzoomEl}
class="panzoom-image h-fit w-fit"
class="panzoom-image h-fit max-w-fit"
on:load={() => {
isLoaded?.setData(true)
}}