From 59a879ea2308d87a626053d2e614e23ca3dd0216 Mon Sep 17 00:00:00 2001 From: Scarriffle Date: Sun, 7 Jun 2026 10:14:08 +0200 Subject: [PATCH] fix: move Today button to the right so the month title sits centered (iOS) Left side now holds only the prev/next chevrons; "Heute" moved next to the burger menu on the right (both flat and Liquid Glass bars), so the month title is centered again instead of pushed right by a heavy left cluster. Co-Authored-By: Claude Opus 4.8 --- Calendarr iOS/Views/Calendar/CalendarHostView.swift | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Calendarr iOS/Views/Calendar/CalendarHostView.swift b/Calendarr iOS/Views/Calendar/CalendarHostView.swift index c2285aa..f6401e2 100644 --- a/Calendarr iOS/Views/Calendar/CalendarHostView.swift +++ b/Calendarr iOS/Views/Calendar/CalendarHostView.swift @@ -122,11 +122,13 @@ struct CalendarHostView: View { HStack(spacing: 2) { Button { store.navigatePrev() } label: { Image(systemName: "chevron.left") } Button { store.navigateNext() } label: { Image(systemName: "chevron.right") } - Button(L10n.t("nav.today", appLang)) { store.moveToToday() }.font(.callout) } } ToolbarItem(placement: .navigationBarTrailing) { - menuButton + HStack(spacing: 8) { + Button(L10n.t("nav.today", appLang)) { store.moveToToday() }.font(.callout) + menuButton + } } } .safeAreaInset(edge: .top, spacing: 0) { @@ -183,9 +185,6 @@ struct CalendarHostView: View { .font(.system(size: 17, weight: .medium)) .frame(width: 36, height: 36) } - Button(L10n.t("nav.today", appLang)) { store.moveToToday() } - .font(.callout).padding(.horizontal, 6) - .lineLimit(1).fixedSize() } .padding(.leading, 6) Spacer(minLength: 6) @@ -195,6 +194,9 @@ struct CalendarHostView: View { .minimumScaleFactor(0.7) .layoutPriority(1) Spacer(minLength: 6) + Button(L10n.t("nav.today", appLang)) { store.moveToToday() } + .font(.callout).padding(.horizontal, 6) + .lineLimit(1).fixedSize() menuButton .padding(.trailing, 2) }