From 040e6f2405434d995ef56b55fea8645cf05767f1 Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 5 Oct 2026 12:12:54 +0200 Subject: [PATCH] fix(tours): center the empty tour list in the Tours tab like the planner rail --- client/src/components/Tours/ToursSidebar.tsx | 2 +- .../Tours/planner/TourPlannerPanels.tsx | 57 ++++++++++--------- 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/client/src/components/Tours/ToursSidebar.tsx b/client/src/components/Tours/ToursSidebar.tsx index 834af50ea..4157efc02 100644 --- a/client/src/components/Tours/ToursSidebar.tsx +++ b/client/src/components/Tours/ToursSidebar.tsx @@ -169,7 +169,7 @@ export default function ToursSidebar({ tripId, days, tours, loading = false, sel
{!loading && filtered.length === 0 ? ( {t('tours.empty.body')}

} /> + action={

{t('tours.empty.body')}

} /> ) : (
    {filtered.map(tour => ( diff --git a/client/src/components/Tours/planner/TourPlannerPanels.tsx b/client/src/components/Tours/planner/TourPlannerPanels.tsx index 84b2f48d6..8f1cd1c78 100644 --- a/client/src/components/Tours/planner/TourPlannerPanels.tsx +++ b/client/src/components/Tours/planner/TourPlannerPanels.tsx @@ -479,34 +479,35 @@ export function TourPlannerToursRail({ planner, tours, days, loading, onAssignTo
)} - - {loading && tours.length === 0 ? ( -

{t('common.loading')}

- ) : tours.length === 0 ? ( - {t('tours.empty.body')}

} /> - ) : ( -
    - {tours.map(tour => ( - 0 ? ( - { if (canAssign) void onAssignToDay(tour.place_id, day.id) }} - /> - ) : undefined} - /> - ))} -
- )} -
+ {!loading && tours.length === 0 ? ( + {t('tours.empty.body')}

} /> + ) : ( + + {tours.length === 0 ? ( +

{t('common.loading')}

+ ) : ( +
    + {tours.map(tour => ( + 0 ? ( + { if (canAssign) void onAssignToDay(tour.place_id, day.id) }} + /> + ) : undefined} + /> + ))} +
+ )} +
+ )}