tui: auto-scroll to bottom when switching between sessions
This commit is contained in:
parent
eb855e1e31
commit
3ace8543b2
1 changed files with 3 additions and 0 deletions
|
|
@ -626,6 +626,9 @@ export function Session() {
|
|||
const dialog = useDialog()
|
||||
const renderer = useRenderer()
|
||||
|
||||
// snap to bottom when session changes
|
||||
createEffect(on(() => route.sessionID, toBottom))
|
||||
|
||||
return (
|
||||
<context.Provider
|
||||
value={{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue