its on the top of the screen now
This commit is contained in:
@@ -44,8 +44,8 @@ pub fn render_ui(
|
|||||||
// Adjust layout based on whether buffer list is shown
|
// Adjust layout based on whether buffer list is shown
|
||||||
let constraints = if app_state.ui.show_buffer_list {
|
let constraints = if app_state.ui.show_buffer_list {
|
||||||
vec![
|
vec![
|
||||||
Constraint::Min(1), // Main content
|
|
||||||
Constraint::Length(1), // Buffer list
|
Constraint::Length(1), // Buffer list
|
||||||
|
Constraint::Min(1), // Main content
|
||||||
Constraint::Length(1), // Status line
|
Constraint::Length(1), // Status line
|
||||||
Constraint::Length(1), // Command line
|
Constraint::Length(1), // Command line
|
||||||
]
|
]
|
||||||
@@ -62,17 +62,19 @@ pub fn render_ui(
|
|||||||
.constraints(constraints)
|
.constraints(constraints)
|
||||||
.split(f.area());
|
.split(f.area());
|
||||||
|
|
||||||
let main_content_area = root[0];
|
|
||||||
let mut buffer_list_area = None;
|
let mut buffer_list_area = None;
|
||||||
|
let main_content_area;
|
||||||
let status_line_area;
|
let status_line_area;
|
||||||
let command_line_area;
|
let command_line_area;
|
||||||
|
|
||||||
// Assign areas based on layout
|
// Assign areas based on layout
|
||||||
if app_state.ui.show_buffer_list {
|
if app_state.ui.show_buffer_list {
|
||||||
buffer_list_area = Some(root[1]);
|
buffer_list_area = Some(root[0]);
|
||||||
|
main_content_area = root[1];
|
||||||
status_line_area = root[2];
|
status_line_area = root[2];
|
||||||
command_line_area = root[3];
|
command_line_area = root[3];
|
||||||
} else {
|
} else {
|
||||||
|
main_content_area = root[0];
|
||||||
status_line_area = root[1];
|
status_line_area = root[1];
|
||||||
command_line_area = root[2];
|
command_line_area = root[2];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user