huntabyte / vaul-svelte

An unstyled drawer component for Svelte.
https://vaul-svelte.com
MIT License
437 stars 18 forks source link

Directions 'left' and 'top' are broken #70

Open nwaughachukwuma opened 6 months ago

nwaughachukwuma commented 6 months ago

Describe the bug

Setting direction prop to 'left' or 'top' results in a weird behavior when opening the drawer.

Reproduction

https://stackblitz.com/edit/vaul-svelte-snap-points-1wzvnr?file=src%2Froutes%2F%2Bpage.svelte

Logs

No error

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.3 - /usr/local/bin/pnpm
  npmPackages:
    @sveltejs/kit: ^2.0.0 => 2.0.6 
    svelte: ^4.2.7 => 4.2.8 
    typescript: ^5.0.0 => 5.3.3 
    vaul-svelte: latest => 0.3.0

Severity

annoyance

victorDigital commented 5 months ago

bump ^