misc: add overscroll contain
This commit is contained in:
1 parent
296313e508
commit
28f96158d8
1 file changed
+2
-2
@@ -24,7 +24,7 @@
|
|||||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||||
<!-- svelte-ignore a11y-positive-tabindex -->
|
<!-- svelte-ignore a11y-positive-tabindex -->
|
||||||
<div
|
<div
|
||||||
class="fixed top-0 left-0 w-screen h-screen overflow-auto bg-black/50 flex flex-col z-[100]"
|
class="fixed top-0 left-0 w-screen h-screen overflow-auto bg-black/50 flex flex-col z-[100] overscroll-contain"
|
||||||
transition:fade={{ duration: 200 }}
|
transition:fade={{ duration: 200 }}
|
||||||
on:click={() => (open = false)}
|
on:click={() => (open = false)}
|
||||||
>
|
>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
</Button>
|
</Button>
|
||||||
<img
|
<img
|
||||||
src={url}
|
src={url}
|
||||||
class="w-full h-full object-contain max-w-screen-sm mx-auto my-auto"
|
class="w-full h-full object-contain max-w-screen-sm mx-auto my-auto overscroll-contain"
|
||||||
transition:scale={{ start: 0.9, easing: expoOut }}
|
transition:scale={{ start: 0.9, easing: expoOut }}
|
||||||
{alt}
|
{alt}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in new issue
Block a user