wip(desktop): progress
This commit is contained in:
parent
c8e1950522
commit
0a556bb646
2 changed files with 2 additions and 1 deletions
|
|
@ -112,6 +112,7 @@
|
||||||
padding: 4px 10px;
|
padding: 4px 10px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: var(--text-strong);
|
color: var(--text-strong);
|
||||||
|
scroll-margin-top: 28px;
|
||||||
|
|
||||||
/* text-14-medium */
|
/* text-14-medium */
|
||||||
font-family: var(--font-family-sans);
|
font-family: var(--font-family-sans);
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const element = scrollRef()?.querySelector(`[data-key="${active()}"]`)
|
const element = scrollRef()?.querySelector(`[data-key="${active()}"]`)
|
||||||
element?.scrollIntoView({ block: "nearest", behavior: "smooth" })
|
element?.scrollIntoView({ block: "center", behavior: "smooth" })
|
||||||
})
|
})
|
||||||
|
|
||||||
const handleSelect = (item: T | undefined, index: number) => {
|
const handleSelect = (item: T | undefined, index: number) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue