deprecation fixed

This commit is contained in:
filipriec
2025-03-21 21:26:06 +01:00
parent 8b2120bdc8
commit d55dff8a3e

View File

@@ -24,7 +24,7 @@ pub fn render_ui(
command_message: &str,
ui_state: &UiState,
) {
render_background(f, f.size(), theme);
render_background(f, f.area(), theme);
let root = Layout::default()
.direction(Direction::Vertical)
@@ -33,7 +33,7 @@ pub fn render_ui(
Constraint::Length(1),
Constraint::Length(1),
])
.split(f.size());
.split(f.area());
let main_content_area = root[0];
let (sidebar_area, form_area) = calculate_sidebar_layout(ui_state.show_sidebar, main_content_area);