deprecation fixed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user