You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable layout: aligned in crates/tiny/config.toml so that the "chat" example in TUI will use the aligned layout.
Run cargo run --example chat in crates/libtiny_tui
Navigate to the channel tab and make the window narrow.
It renders fine for a while, but then renders weirdly as shown in the screenshot.
I think it might make sense to fall back to the compact layout when there isn't enough columns on the terminal, which renders nicely even on small terminals.
Instead of applying padding to the actual data in the line buffers, this
applies the correct padding on the fly during line height calculation
and drawing.
Not a very good solution since I did this in order to be able to switch
layouts on the fly (osa1#318) but it still doesn't work because we don't always
align every line (i.e topic line, server stuff).
To repro:
layout: aligned
incrates/tiny/config.toml
so that the "chat" example in TUI will use the aligned layout.cargo run --example chat
incrates/libtiny_tui
It renders fine for a while, but then renders weirdly as shown in the screenshot.
I think it might make sense to fall back to the compact layout when there isn't enough columns on the terminal, which renders nicely even on small terminals.
Pinging @trevarj who implemented compact layout.
The text was updated successfully, but these errors were encountered: