asomers / ztop

Display ZFS datasets' I/O in real time
BSD 2-Clause "Simplified" License
69 stars 7 forks source link

Fix table rendering with terminals less than 90 chars #33

Closed asomers closed 11 months ago

asomers commented 11 months ago

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 https://github.com/ratatui-org/ratatui/pull/660