fix: clear scrollable view before drawing next frame

This commit is contained in:
Michael Bolin
2025-05-17 09:10:43 -07:00
parent f8b6b1db81
commit 56a06203bb

View File

@@ -438,6 +438,8 @@ impl WidgetRef for ConversationHistoryWidget {
.wrap(wrap_cfg())
.scroll((offset_into_first as u16, 0));
// Clear the widget area to avoid visual artifacts from previous frames.
Clear.render(area, buf);
paragraph.render(area, buf);
// Draw scrollbar if necessary.