diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-03 23:42:04 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-03 23:42:04 +0200 |
| commit | 293406c3bd2acc85490da11afabaf6733babd5e4 (patch) | |
| tree | 1d3df45b9fb4511c37feaeacc885e1913e7f8ed6 /internal/tui/timer.go | |
| parent | 2c414a53dc95c75584398246beb34f7ddf181448 (diff) | |
tui: wire real entries/report data and improve entry editing
Includes task 354 error-wrapping updates in cli/timer.go.
Diffstat (limited to 'internal/tui/timer.go')
| -rw-r--r-- | internal/tui/timer.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/tui/timer.go b/internal/tui/timer.go index 4ed3c5f..2c64ef7 100644 --- a/internal/tui/timer.go +++ b/internal/tui/timer.go @@ -84,6 +84,12 @@ func NewTimerModel(font string, cfg config.Config) (TimerModel, error) { return model, nil } +// SetSize updates timer viewport dimensions. +func (m *TimerModel) SetSize(width, height int) { + m.width = width + m.height = height +} + // Init is called when the model starts. func (m TimerModel) Init() tea.Cmd { if m.state.Running { |
