Fix: Auto-scroll to bottom when selecting session from list (#3988)
Co-authored-by: shanjairaj7 <shanjairaj7@users.noreply.github.com> Co-authored-by: Aiden Cline <aidenpcline@gmail.com>pull/2440/head
parent
6791233ca0
commit
b8c51e307f
|
|
@ -5,6 +5,7 @@ import {
|
|||
createSignal,
|
||||
For,
|
||||
Match,
|
||||
on,
|
||||
Show,
|
||||
Switch,
|
||||
useContext,
|
||||
|
|
@ -162,6 +163,9 @@ export function Session() {
|
|||
return session()?.revert?.messageID
|
||||
})
|
||||
|
||||
// snap to bottom when session changes
|
||||
createEffect(on(() => route.sessionID, toBottom))
|
||||
|
||||
const local = useLocal()
|
||||
|
||||
function moveChild(direction: number) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue