diff options
| author | Adam <[email protected]> | 2025-12-15 05:19:20 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-15 10:20:17 -0600 |
| commit | 40572eeba4b94d411934c7ff95ce51ba88c9562f (patch) | |
| tree | f9723eb3be9fa74864de606ce39a7d51cef51e06 /packages/ui/src/components/list.tsx | |
| parent | d81d63045ac619bc9201df4ae2e003a2d08596d1 (diff) | |
| download | opencode-40572eeba4b94d411934c7ff95ce51ba88c9562f.tar.gz opencode-40572eeba4b94d411934c7ff95ce51ba88c9562f.zip | |
wip(desktop): progress
Diffstat (limited to 'packages/ui/src/components/list.tsx')
| -rw-r--r-- | packages/ui/src/components/list.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/ui/src/components/list.tsx b/packages/ui/src/components/list.tsx index 7ec6e159d..0ed745f32 100644 --- a/packages/ui/src/components/list.tsx +++ b/packages/ui/src/components/list.tsx @@ -79,7 +79,7 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void }) return } 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) => { |
