gui changes
This commit is contained in:
@@ -77,8 +77,8 @@ pub fn render_add_table(
|
|||||||
let middle_chunks = Layout::default()
|
let middle_chunks = Layout::default()
|
||||||
.direction(Direction::Horizontal)
|
.direction(Direction::Horizontal)
|
||||||
.constraints([
|
.constraints([
|
||||||
Constraint::Percentage(60), // Left: Columns Table
|
Constraint::Percentage(50), // Left: Columns Table
|
||||||
Constraint::Percentage(40), // Right: Inputs etc.
|
Constraint::Percentage(50), // Right: Inputs etc.
|
||||||
])
|
])
|
||||||
.split(middle_area);
|
.split(middle_area);
|
||||||
|
|
||||||
@@ -211,7 +211,11 @@ pub fn render_add_table(
|
|||||||
let columns_highlight_symbol = if add_table_state.current_focus == AddTableFocus::InsideColumnsTable { " > " } else { " " };
|
let columns_highlight_symbol = if add_table_state.current_focus == AddTableFocus::InsideColumnsTable { " > " } else { " " };
|
||||||
let columns_table = Table::new(
|
let columns_table = Table::new(
|
||||||
column_rows,
|
column_rows,
|
||||||
[Constraint::Percentage(60), Constraint::Percentage(40)],
|
[ // Define constraints for 3 columns: Sel, Name, Type
|
||||||
|
Constraint::Length(5),
|
||||||
|
Constraint::Percentage(60),
|
||||||
|
Constraint::Percentage(35),
|
||||||
|
],
|
||||||
)
|
)
|
||||||
.header(header)
|
.header(header)
|
||||||
.block(
|
.block(
|
||||||
|
|||||||
Reference in New Issue
Block a user