add snap for horizontal view
This commit is contained in:
parent
16f4e851e1
commit
635ee1e9f7
2 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue