feat(tui): auto-wrap keybind lines, show profiles keybinds

This commit is contained in:
objz committed 2026-01-10 15:55:33 +01:00
1 parent b0738761c9
commit 9e65fb43d8
6 files changed
+100 -52

No files matched your search

+6 -3
View File
@@ -226,10 +226,13 @@ pub fn render(frame: &mut Frame, area: Rect, focused: FocusedArea, state: &mut A
.border_style(Style::default().fg(color));
if focused == FocusedArea::Account {
block = block.title_bottom(
super::popups::keybind_line(&[("⏎", " select"), ("a", " add"), ("d", " del")])
.alignment(ratatui::layout::Alignment::Right),
let lines = super::popups::keybind_lines_wrapped(
&[("⏎", " select"), ("a", " add"), ("d", " del")],
area.width.saturating_sub(2),
);
for line in lines {
block = block.title_bottom(line);
}
}
let inner = block.inner(area);