mirror of
https://github.com/charmbracelet/gum
synced 2024-06-15 20:15:08 +02:00
Returned output formatting to previous version.
This commit is contained in:
parent
28fa08424f
commit
7e39f6f187
|
@ -83,9 +83,14 @@ func (m model) Init() tea.Cmd {
|
|||
}
|
||||
func (m model) View() string {
|
||||
if m.align == "left" {
|
||||
if !m.showOutput {
|
||||
return m.spinner.View() + " " + m.title
|
||||
}
|
||||
return m.spinner.View() + " " + m.title + "\n" + liveBuffer.String()
|
||||
}
|
||||
|
||||
if !m.showOutput {
|
||||
return m.title + " " + m.spinner.View()
|
||||
}
|
||||
return m.title + " " + m.spinner.View() + "\n" + liveBuffer.String()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue