From 5ebc5d2eee8f8c4395ce7dd1cdd4929d84c973b8 Mon Sep 17 00:00:00 2001 From: steven carpenter Date: Mon, 28 Jul 2025 22:41:38 -0400 Subject: [PATCH] added centering for hourlyView --- tui/view.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 }