Skip to content

Commit

Permalink
feat: hide search tab headers
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanaden committed Jun 23, 2024
1 parent 257c3bd commit af2206f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions rm-main/src/ui/tabs/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,15 @@ impl Component for SearchTab {
.config
.general
.accent_color);
let table = Table::new(items, widths)
.header(header)
.highlight_style(table_higlight_style);

let table = {
let table = Table::new(items, widths).highlight_style(table_higlight_style);
if !self.ctx.config.general.hide_headers {
table.header(header)
} else {
table
}
};

f.render_stateful_widget(table, rest, &mut *table_lock.state.borrow_mut());

Expand Down

0 comments on commit af2206f

Please sign in to comment.