add snap for horizontal view

This commit is contained in:
relaxed 2025-07-30 20:47:48 +05:00
parent 16f4e851e1
commit 635ee1e9f7
2 changed files with 2 additions and 2 deletions

View file

@ -517,7 +517,7 @@
class="flex
{ui_sytle === 'vertical'
? 'flex-col space-y-2 justify-center'
: 'overflow-x-auto overflow-y-hidden'}
: 'overflow-x-auto overflow-y-hidden snap-x snap-mandatory'}
text-[16px]"
>
{#if rasp_data.length === 0 && data.saved.length === 0}

View file

@ -7,7 +7,7 @@
</script>
{#each rasp_data as day, i}
<div id={`${i}`} class="p-2 min-w-[300px]">
<div id={`${i}`} class="p-2 min-w-[300px] snap-center">
<div
class="flex p-2 mb-2
border-[1px] border-[var(--w-border)] dark:border-[var(--b-border)]