feat: wip tui updates

This commit is contained in:
cato 2025-12-07 11:42:57 +01:00
parent 5d7e9d79c4
commit dde2d98a84
5 changed files with 158 additions and 24 deletions

View file

@ -2,9 +2,21 @@ package tui
import tea "github.com/charmbracelet/bubbletea"
type Size struct{
Width, Height int
}
type (
Size struct{
Width, Height int
}
Sized interface{
SetSize(width, height int) tea.Model
}
SizedWidth interface{
SetWidth(width int) tea.Model
}
SizedHeight interface{
SetHeight(height int) tea.Model
}
)
func NewSize(width, height int) Size {
return Size { Width: width, Height: height }