Browse Source

fix(desktop): auto-scroll

Adam 2 months ago
parent
commit
1755a3fe07
1 changed files with 1 additions and 6 deletions
  1. 1 6
      packages/ui/src/components/session-turn.tsx

+ 1 - 6
packages/ui/src/components/session-turn.tsx

@@ -106,12 +106,7 @@ export function SessionTurn(
     })
   }
 
-  createResizeObserver(
-    () => state.contentRef,
-    () => {
-      scrollToBottom()
-    },
-  )
+  createResizeObserver(() => state.contentRef, scrollToBottom)
 
   createEffect(() => {
     if (!working()) {