From be53e87d12577e80f6d5bf31c96a9445edbd88d7 Mon Sep 17 00:00:00 2001 From: Kush Agent Date: Fri, 15 May 2026 12:12:39 -0400 Subject: [PATCH] fix: prevent home horizontal overflow --- FlightApp/Views/Search/FlightSearchView.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FlightApp/Views/Search/FlightSearchView.swift b/FlightApp/Views/Search/FlightSearchView.swift index 0a199ea..fa3c7b4 100644 --- a/FlightApp/Views/Search/FlightSearchView.swift +++ b/FlightApp/Views/Search/FlightSearchView.swift @@ -46,12 +46,14 @@ struct FlightSearchView: View { // Recent flights section if !recentSearchStore.recentSearches.isEmpty { recentFlightsSection + .padding(.horizontal, 20) .padding(.bottom, 32) } // Recent routes section if !recentRouteStore.recentRoutes.isEmpty { recentRoutesSection + .padding(.horizontal, 20) .padding(.bottom, 32) } @@ -59,7 +61,7 @@ struct FlightSearchView: View { discoverSection .padding(.bottom, 100) // Space for bottom search bar } - .padding(.horizontal, 20) + .frame(maxWidth: .infinity) } // Unified search bar (liquid glass) @@ -299,7 +301,6 @@ struct FlightSearchView: View { .padding(.horizontal, 20) } } - .padding(.horizontal, -20) // Counteract parent padding } // MARK: - Helper Functions