From 344358762fb53d94f293d7ac744430e91228d676 Mon Sep 17 00:00:00 2001 From: objz Date: Sun, 15 Mar 2026 16:12:27 +0100 Subject: [PATCH] fix(tui): remove duplicate hint text from import input step --- src/tui/widgets/popups/import_modpack.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/tui/widgets/popups/import_modpack.rs b/src/tui/widgets/popups/import_modpack.rs index d8d7923..f9113be 100644 --- a/src/tui/widgets/popups/import_modpack.rs +++ b/src/tui/widgets/popups/import_modpack.rs @@ -531,7 +531,7 @@ fn render_input_step( .direction(Direction::Vertical) .constraints([ Constraint::Length(1), // input line - Constraint::Length(1), // error or hint + Constraint::Length(1), // error (only shown if present) Constraint::Min(0), // remaining space ]) .split(area); @@ -566,7 +566,7 @@ fn render_input_step( }; Paragraph::new(input_line).render(chunks[0], buf); - // Error or hint + // Error only if let Some(ref err) = state.error { Paragraph::new(Span::styled( err.as_str(), @@ -574,12 +574,6 @@ fn render_input_step( )) .wrap(Wrap { trim: true }) .render(chunks[1], buf); - } else { - Paragraph::new(Span::styled( - "URL, slug, or local .mrpack path", - Style::default().fg(THEME.popup_new_instance.field_inactive_border_fg), - )) - .render(chunks[1], buf); } }