mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 06:49:37 +02:00
Make image modal not reset scroll
This commit is contained in:
parent
39fb4ad1ca
commit
b7c406ec0c
1 changed files with 4 additions and 1 deletions
|
@ -172,7 +172,10 @@
|
||||||
style="display: {i === currentSlide ? 'block' : 'none'}"
|
style="display: {i === currentSlide ? 'block' : 'none'}"
|
||||||
>
|
>
|
||||||
<!-- svelte-ignore a11y-invalid-attribute -->
|
<!-- svelte-ignore a11y-invalid-attribute -->
|
||||||
<a href="#" on:click={() => (image_url = image.image)}
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||||
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||||
|
<!-- svelte-ignore a11y-missing-attribute -->
|
||||||
|
<a on:click={() => (image_url = image.image)}
|
||||||
><img src={image.image} class="w-full h-48 object-cover" alt={adventure.name} /></a
|
><img src={image.image} class="w-full h-48 object-cover" alt={adventure.name} /></a
|
||||||
>
|
>
|
||||||
<div class="flex justify-center w-full py-2 gap-2">
|
<div class="flex justify-center w-full py-2 gap-2">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue