implement patch, update ui, improve rendering

This commit is contained in:
Kujtim Hoxha
2025-04-18 20:17:38 +02:00
parent 05d0e86f10
commit 333ea6ec4b
38 changed files with 3312 additions and 2262 deletions

View File

@@ -86,7 +86,7 @@ func (c *container) View() string {
return style.Render(c.content.View())
}
func (c *container) SetSize(width, height int) {
func (c *container) SetSize(width, height int) tea.Cmd {
c.width = width
c.height = height
@@ -113,8 +113,9 @@ func (c *container) SetSize(width, height int) {
// Set content size with adjusted dimensions
contentWidth := max(0, width-horizontalSpace)
contentHeight := max(0, height-verticalSpace)
sizeable.SetSize(contentWidth, contentHeight)
return sizeable.SetSize(contentWidth, contentHeight)
}
return nil
}
func (c *container) GetSize() (int, int) {