diff --git a/styles.go b/styles.go index 6f39e73..58ddb73 100644 --- a/styles.go +++ b/styles.go @@ -5,8 +5,6 @@ import ( ) var( - docStyle = lipgloss.NewStyle().Margin(1, 2, 1, 2) - inactiveTab = lipgloss.NewStyle(). Faint(true). Padding(0, 2) diff --git a/tabs.go b/tabs.go index d37e66d..f6b4c64 100644 --- a/tabs.go +++ b/tabs.go @@ -51,7 +51,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) { switch msg := msg.(type) { case tea.WindowSizeMsg: - m.Width = msg.Width + m.Width = uint(msg.Width) // just update width m.TitleStyle = m.TitleStyle. Width(msg.Width). @@ -100,10 +100,6 @@ func (m *Model) SetTabModels(models []tea.Model) { m.tabModels = models } -func (m *Model) Width() uint { - return m.Width -} - func (m *Model) SetWidth(width uint) { m.Width = width }