diff --git a/src/ui/mod.rs b/src/ui/mod.rs index b4c8652..d98337e 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -82,7 +82,7 @@ pub fn ui(frame: &mut Frame, app: &AppState) { .title("Add an entry") .borders(Borders::NONE) .style(Style::default().bg(Color::DarkGray)); - let area = centered_rect(60, 25, frame.area()); + let area = centered_rect(60, 25, titleBodyChunks[1]); frame.render_widget(popup, area); let fields = Layout::default()