LM 20a55cf142
fix(tui): fix incorrect height calculation when there is not enough space (#611)
## 📺 PR Description

Solves #609

- The calculation of available_height for the Inline and Fixed mode were
updated to correctly account for the remaining space and the necessary
height needed for the TUI
- QoL: Refactored the viewport calculation logic for both Inline and
Fixed modes to use a shared scrolling function
(handle_viewport_scrolling).
- Docs: Added note about default minimum height

## Checklist

- [x] my commits **and PR title** follow the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) format
- [x] if this is a new feature, I have added tests to consolidate the
feature and prevent regressions
- [ ] if this is a bug fix, I have added a test that reproduces the bug
(if applicable)
- [x] I have added a reasonable amount of documentation to the code
where appropriate
2025-07-09 16:12:19 +02:00
..