Eeelco
d726e928d2
feat(Paragraph): add alignment convenience functions ( #866 )
...
Added convenience functions left_aligned(), centered() and
right_aligned() plus unit tests. Updated example code.
Signed-off-by: Eelco Empting <me@eelco.de >
2024-01-24 03:31:52 -08:00
Valentin271
813f707892
refactor(example): improve constraints and flex examples ( #817 )
...
This PR is a follow up to
https://github.com/ratatui-org/ratatui/pull/811 .
It improves the UI of the layouts by
- thoughtful accessible color that represent priority in constraints
resolving
- using QUADRANT_OUTSIDE symbol set for block rendering
- adding a scrollbar
- panic handling
- refactoring for readability
to name a few. Here are some example gifs of the outcome:


---------
Co-authored-by: Dheepak Krishnamurthy <me@kdheepak.com >
Co-authored-by: Josh McKinney <joshka@users.noreply.github.com >
2024-01-15 20:56:40 -08:00
Valentin271
3e7810a2ab
fix(example): increase layout cache size ( #815 )
...
This was causing very bad performances especially on scrolling.
It's also a good usage demonstration.
2024-01-14 18:10:12 +01:00
Dheepak Krishnamurthy
9a3815b66d
feat: Add Constraint::Fixed and Constraint::Proportional ✨ ( #783 )
2024-01-12 21:11:15 -05:00