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
{{ message }}
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.
Is your feature request related to a problem? Please describe.
I want to center my text both horizontally and vertically in a paragraph.
Describe the solution you'd like
Something similar to alignment::Center, but for vertical.
Describe alternatives you've considered
I've considered calculating the height and prefixing the text with the appropriate number of blank lines.
I've also considered using blank widgets above and below the text to "squish" it towards the middle.
Additional context
Honestly, I'm pretty new to TUI so its very possible I've simply missed the appropriate way to do this.
The text was updated successfully, but these errors were encountered:
I managed to get some vertical centering of text with a custom component. It worked for what I need now, but I haven't tested it with text overflowing or multi lines. I'll drop the code below if anybody finds it useful.
Is your feature request related to a problem? Please describe.
I want to center my text both horizontally and vertically in a paragraph.
Describe the solution you'd like
Something similar to alignment::Center, but for vertical.
Describe alternatives you've considered
I've considered calculating the height and prefixing the text with the appropriate number of blank lines.
I've also considered using blank widgets above and below the text to "squish" it towards the middle.
Additional context
Honestly, I'm pretty new to TUI so its very possible I've simply missed the appropriate way to do this.
The text was updated successfully, but these errors were encountered: