kworkflow / patch-hub

patch-hub is a TUI that streamlines the interaction of Linux developers with patches archived on lore.kernel.org
GNU General Public License v2.0
8 stars 6 forks source link

Loading notification disappears when terminal is too short #75

Closed davidbtadokoro closed 1 week ago

davidbtadokoro commented 1 month ago

Description:

When the terminal is too small, the loading notification doesn't show. This most likely happens due to using the function centered_rect, which, based on an area, height and width percentage, creates a rectangle centered (vertically and horizontally) in that area. The problem is most perceptible vertically, but it is also a matter horizontally.

How to reproduce:

Run a delayed action in a terminal with a small height.

Expected behavior:

Even if we have a terminal with a one-line height, we should display the loading notification.

Screenshots

Peek 2024-10-26 19-01

Setup: