Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix table rendering with terminals less than 90 chars #33

Merged
merged 5 commits into from
Dec 18, 2023

Conversation

asomers
Copy link
Owner

@asomers asomers commented Dec 3, 2023

Fix table rendering with terminals less than 90 chars

Previously, when the terminal was less than about 90 chars wide ratatui would shrink or even disappear one of the data columns, seemingly at random. This was a regression from tui, which would always shrink the final column.

Now, ztop will always display a minimum of 6 chars for the Dataset column, and shrink a data column (again, at random) only for very narrow terminals.

Fixes #32

Depends on ratatui/ratatui#660

@asomers asomers marked this pull request as ready for review December 18, 2023 15:54
No interesting changes, yet.
Previously, when the terminal was less than about 90 chars wide ratatui
would shrink or even disappear one of the data columns, seemingly at
random.  This was a regression from tui, which would always shrink the
final column.

Now, ztop will always display a minimum of 6 chars for the Dataset
column, and shrink a data column (again, at random) only for very narrow
terminals.

Fixes #32
@asomers asomers merged commit c7d3186 into master Dec 18, 2023
3 checks passed
@asomers asomers deleted the ratatui-0.24.0 branch December 18, 2023 18:07
asomers added a commit that referenced this pull request Dec 18, 2023
The bug that PR fixed was only introduced after the last release, so it
doesn't need documentation in the CHANGELOG.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Columns disappear unpredictably with smaller terminal sizes
1 participant