refactor: tweak max hints window size
This commit is contained in:
parent
d069250d17
commit
4e4ec855ed
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ fn render(mode: *keybind.Mode, bindings: []const keybind.Binding, theme: *const
|
|||
const max_len = max_prefix_len + max_description_len + 2 + 2;
|
||||
const widget_style = tui.get_widget_style(widget_type);
|
||||
const scr = tui.screen();
|
||||
const max_screen_height = scr.h -| widget_style.padding.top -| widget_style.padding.bottom -| 1;
|
||||
const max_screen_height = scr.h -| widget_style.padding.top -| widget_style.padding.bottom -| 3;
|
||||
const max_items = @min(bindings.len, max_screen_height);
|
||||
const page_size = max_screen_height;
|
||||
var top = show_page * page_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue