diff --git a/tui/view.go b/tui/view.go index 3696065..d72ab8c 100644 --- a/tui/view.go +++ b/tui/view.go @@ -136,6 +136,14 @@ func (m model) viewHourly() string { } b.WriteString("[n] to add event,[e] to edit event,[x] to delete an event, [up]/[down] keys to move, [Esc] to go back to month view, [q] to quit.") - return b.String() + // Center the hourly view + view := b.String() + + // Horizontal centering + view = lipgloss.PlaceHorizontal(m.width, lipgloss.Center, view) + // Vertical centering + view = lipgloss.PlaceVertical(m.height, lipgloss.Center, view) + + return view }