deletion of the selected works

This commit is contained in:
filipriec
2025-04-18 11:15:15 +02:00
parent 92a9011f27
commit 305bcfcf62
4 changed files with 44 additions and 9 deletions

View File

@@ -197,13 +197,14 @@ pub fn render_add_table(
.iter()
.map(|col_def| {
Row::new(vec![
Cell::from(if col_def.selected { "[*]" } else { "[ ]" }),
Cell::from(col_def.name.clone()),
Cell::from(col_def.data_type.clone()),
])
.style(Style::default().fg(theme.fg))
})
.collect();
let header_cells = ["Name", "Type"]
let header_cells = ["Sel", "Name", "Type"]
.iter()
.map(|h| Cell::from(*h).style(Style::default().fg(theme.accent)));
let header = Row::new(header_cells).height(1).bottom_margin(1);