From 3944930fc04a57c3da9c80d9d7377effd1277004 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Thu, 15 May 2025 15:45:22 -0500 Subject: chore: cleanup --- internal/tui/layout/container.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'internal/tui/layout') diff --git a/internal/tui/layout/container.go b/internal/tui/layout/container.go index 08b10fdd6..b5bdca20a 100644 --- a/internal/tui/layout/container.go +++ b/internal/tui/layout/container.go @@ -11,16 +11,16 @@ type Container interface { tea.Model Sizeable Bindings - Focus() // Add focus method - Blur() // Add blur method + Focus() + Blur() } + type container struct { width int height int content tea.Model - // Style options paddingTop int paddingRight int paddingBottom int @@ -32,7 +32,7 @@ type container struct { borderLeft bool borderStyle lipgloss.Border - focused bool // Track focus state + focused bool } func (c *container) Init() tea.Cmd { @@ -152,16 +152,13 @@ func (c *container) Blur() { type ContainerOption func(*container) func NewContainer(content tea.Model, options ...ContainerOption) Container { - c := &container{ content: content, borderStyle: lipgloss.NormalBorder(), } - for _, option := range options { option(c) } - return c } -- cgit v1.2.3