mirror of
https://github.com/pdxlocations/contact.git
synced 2026-03-28 17:12:35 +01:00
don't hide help window on small screens
This commit is contained in:
@@ -29,8 +29,6 @@ save_option = "Save Changes"
|
||||
|
||||
def get_save_option_label() -> str:
|
||||
return t("ui.save_changes", default=save_option)
|
||||
MIN_HEIGHT_FOR_HELP = 20
|
||||
|
||||
|
||||
def move_highlight(
|
||||
old_idx: int, options: List[str], menu_win: curses.window, menu_pad: curses.window, **kwargs: Any
|
||||
@@ -181,9 +179,6 @@ def update_help_window(
|
||||
) -> object: # returns a curses window
|
||||
"""Handles rendering the help window consistently."""
|
||||
|
||||
if curses.LINES < MIN_HEIGHT_FOR_HELP:
|
||||
return None
|
||||
|
||||
# Clamp target position and width to the current terminal size
|
||||
help_x = max(0, help_x)
|
||||
help_y = max(0, help_y)
|
||||
|
||||
Reference in New Issue
Block a user