mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-19 17:53:25 +02:00
fix: Custom scrollIntoView function with offsets and onFocus handlers for containers
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<script lang="ts">
|
||||
import Container from '../../Container.svelte';
|
||||
import { onMount } from 'svelte';
|
||||
import { scrollWithOffset } from '../selectable';
|
||||
|
||||
let cols: number = 1;
|
||||
const calculateRows = () => {
|
||||
@@ -25,7 +24,6 @@
|
||||
<Container
|
||||
direction="grid"
|
||||
gridCols={cols}
|
||||
childrenRevealStrategy={scrollWithOffset('all', 50)}
|
||||
class="grid gap-x-4 gap-y-8 grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5"
|
||||
>
|
||||
<slot />
|
||||
|
||||
Reference in New Issue
Block a user