mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-21 16:25:11 +02:00
fix: Custom scrollIntoView function with offsets and onFocus handlers for containers
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
import { ChevronLeft, ChevronRight } from 'radix-icons-svelte';
|
||||
import classNames from 'classnames';
|
||||
import Container from '../../../Container.svelte';
|
||||
import { scrollWithOffset } from '../../selectable';
|
||||
|
||||
export let gradientFromColor = 'from-stone-950';
|
||||
export let heading = '';
|
||||
@@ -45,11 +44,7 @@
|
||||
</div>
|
||||
|
||||
<div class="relative">
|
||||
<Container
|
||||
childrenRevealStrategy={scrollWithOffset('left', 64 + 16)}
|
||||
direction="horizontal"
|
||||
navigationActions={{ left: () => true }}
|
||||
>
|
||||
<Container direction="horizontal" navigationActions={{ left: () => true }}>
|
||||
<div
|
||||
class={classNames(
|
||||
'flex overflow-x-scroll items-center overflow-y-visible relative scrollbar-hide',
|
||||
|
||||
Reference in New Issue
Block a user