feat: Improved UI speed and responsiveness
Check / stable / fmt (push) Has been cancelled
Check / beta / clippy (push) Has been cancelled
Check / stable / clippy (push) Has been cancelled
Check / nightly / doc (push) Has been cancelled
Check / 1.89.0 / check (push) Has been cancelled
Test Suite / ubuntu / beta (push) Has been cancelled
Test Suite / ubuntu / stable (push) Has been cancelled
Test Suite / macos-latest / stable (push) Has been cancelled
Test Suite / windows-latest / stable (push) Has been cancelled
Test Suite / ubuntu / stable / coverage (push) Has been cancelled

This commit is contained in:
2025-12-19 13:41:14 -07:00
parent 6a9fd0999c
commit 368f7505ff
21 changed files with 64 additions and 28 deletions
+4 -5
View File
@@ -52,6 +52,7 @@ pub trait DrawUi {
}
pub fn ui(f: &mut Frame<'_>, app: &mut App<'_>) {
app.on_ui_scroll_tick();
f.render_widget(background_block(), f.area());
let [header_area, context_area, table_area] = if !app.error.text.is_empty() {
let [header_area, error_area, context_area, table_area] = Layout::vertical([
@@ -124,11 +125,9 @@ fn draw_error(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
.failure()
.bold();
app.error.scroll_left_or_reset(
area.width as usize,
true,
app.tick_count.is_multiple_of(app.ticks_until_scroll),
);
app
.error
.scroll_left_or_reset(area.width as usize, true, app.ui_scroll_tick_count == 0);
let paragraph = Paragraph::new(Text::from(app.error.to_string().failure()))
.block(block)