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.
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
Setup: