Skip to content

Commit

Permalink
fix chat
Browse files Browse the repository at this point in the history
  • Loading branch information
ludns committed Nov 9, 2024
1 parent 8c37f2f commit dd8944d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chat/src/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ impl Chat {
fn scroll_to_bottom(&mut self) {
let messages_len = self.logic.get_messages().len();
if messages_len > 0 {
self.scroll_handle.scroll_to_item(messages_len - 1);
self.scroll_handle
.scroll_to_item(messages_len - 1, gpui::ScrollStrategy::Center);
}
}
}
Expand Down

0 comments on commit dd8944d

Please sign in to comment.