fix(tui): layout issues

This commit is contained in:
adamdottv
2025-06-30 14:04:48 -05:00
parent dd5736fe5f
commit 5a107b275c
5 changed files with 92 additions and 138 deletions

View File

@@ -14,7 +14,6 @@ import (
)
type CommandsComponent interface {
tea.Model
tea.ViewModel
SetSize(width, height int) tea.Cmd
SetBackgroundColor(color compat.AdaptiveColor)
@@ -43,19 +42,6 @@ func (c *commandsComponent) SetBackgroundColor(color compat.AdaptiveColor) {
c.background = &color
}
func (c *commandsComponent) Init() tea.Cmd {
return nil
}
func (c *commandsComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
case tea.WindowSizeMsg:
c.width = msg.Width
c.height = msg.Height
}
return c, nil
}
func (c *commandsComponent) View() string {
t := theme.CurrentTheme()