chore: generate
This commit is contained in:
parent
e445dc0746
commit
fa75d922ed
6 changed files with 39 additions and 30 deletions
|
|
@ -268,13 +268,7 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
|
|||
{searchAction()}
|
||||
</div>
|
||||
</Show>
|
||||
<ScrollFade
|
||||
ref={setScrollRef}
|
||||
direction="vertical"
|
||||
fadeStartSize={0}
|
||||
fadeEndSize={20}
|
||||
data-slot="list-scroll"
|
||||
>
|
||||
<ScrollFade ref={setScrollRef} direction="vertical" fadeStartSize={0} fadeEndSize={20} data-slot="list-scroll">
|
||||
<Show
|
||||
when={flat().length > 0 || showAdd()}
|
||||
fallback={
|
||||
|
|
@ -349,4 +343,4 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
|
|||
</ScrollFade>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -203,4 +203,4 @@ export function ScrollFade(props: ScrollFadeProps) {
|
|||
{local.children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { type JSX, onCleanup, splitProps } from "solid-js"
|
||||
import { ScrollFade, type ScrollFadeProps } from './scroll-fade'
|
||||
import { ScrollFade, type ScrollFadeProps } from "./scroll-fade"
|
||||
|
||||
const SCROLL_SPEED = 60
|
||||
const PAUSE_DURATION = 800
|
||||
|
|
@ -138,4 +138,4 @@ export function ScrollReveal(props: ScrollRevealProps) {
|
|||
{local.children}
|
||||
</ScrollFade>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue