(Fix): removed the non-functional automata background overlay from View() (the Frame() was never called, and the black-space placeholder caused EEEE garbage characters on some terminals)
This commit is contained in:
@@ -461,11 +461,9 @@ func (m *Model) View() string {
|
||||
|
||||
content := m.renderLayout()
|
||||
|
||||
if m.automata != nil && m.width > 0 && m.height > 0 {
|
||||
if m.width > 0 && m.height > 0 {
|
||||
return lipgloss.Place(m.width, m.height, lipgloss.Center, lipgloss.Center,
|
||||
content,
|
||||
lipgloss.WithWhitespaceChars(" "),
|
||||
lipgloss.WithWhitespaceForeground(lipgloss.Color("0")),
|
||||
)
|
||||
}
|
||||
return content
|
||||
@@ -474,7 +472,6 @@ func (m *Model) View() string {
|
||||
func (m *Model) renderLayout() string {
|
||||
// top bar: power hints
|
||||
top := m.renderPowerHints()
|
||||
top = lipgloss.NewStyle().Width(80).Align(lipgloss.Left).Render(top)
|
||||
|
||||
// avatar + form side by side
|
||||
avatar := m.renderAvatar()
|
||||
|
||||
Reference in New Issue
Block a user