forked from MapComplete/MapComplete
UX tweaks
This commit is contained in:
parent
24581e42ca
commit
d1a6c11513
2 changed files with 4 additions and 3 deletions
|
@ -15,7 +15,8 @@
|
|||
panzoomInstance = panzoom(panzoomEl, { bounds: true,
|
||||
boundsPadding: 1,
|
||||
minZoom: 1,
|
||||
maxZoom: 25
|
||||
maxZoom: 25,
|
||||
initialZoom: 1.2
|
||||
})
|
||||
} else {
|
||||
panzoomInstance?.dispose()
|
||||
|
@ -24,4 +25,4 @@
|
|||
|
||||
</script>
|
||||
|
||||
<img bind:this={panzoomEl} src={image.url}/>
|
||||
<img bind:this={panzoomEl} src={image.url} class="w-fit h-fit"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue