mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #1116] flex-start in tview #810
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#810
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anderspitman on GitHub (Sep 9, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1116
Is there a way to accomplish the equivalent of CSS Flexbox flex-start in tview?
I have a single line of text followed by a QR code which spans many lines. I want the QR code to appear right below the text line, but they are both taking up half the available height of the flex container.
@rivo commented on GitHub (Sep 28, 2025):
CSS
flex-startis a keyword used in multiple contexts so I'm not sure which one you're referring to. I would even argue thatjustify-content: flex-startis the default intview'sFlexcomponent.If you have a
TextViewwith one line of text and anotherTextViewwith a QR code, do this:This will place the QR code right underneath your one-line text.
@anderspitman commented on GitHub (Jan 20, 2026):
Thanks!