working perfectly well admin panel for admin
This commit is contained in:
@@ -157,13 +157,13 @@ pub fn render_admin_panel_admin(
|
||||
|
||||
// Build and render table list inside the block's inner area
|
||||
let table_list = List::new(table_list_items)
|
||||
// Highlight style depends on whether the pane OR inside has focus
|
||||
.highlight_style(if table_pane_has_focus {
|
||||
// Highlight style only applies when focus is *inside* the list
|
||||
.highlight_style(if admin_state.current_focus == AdminFocus::InsideTablesList {
|
||||
Style::default().add_modifier(ratatui::style::Modifier::REVERSED)
|
||||
} else {
|
||||
Style::default()
|
||||
})
|
||||
.highlight_symbol("> ");
|
||||
.highlight_symbol(if admin_state.current_focus == AdminFocus::InsideTablesList { "> " } else { "" });
|
||||
|
||||
f.render_stateful_widget(table_list, tables_inner_area, &mut admin_state.table_list_state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user