Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(tours): open the tour dialogs in the middle of the screen

Maurice810feba4137d
diff --git a/client/src/components/Atlas/tourActivity/TourActivityStatsDialog.tsx b/client/src/components/Atlas/tourActivity/TourActivityStatsDialog.tsx
index 076962d43..aa7680bf7 100644
--- a/client/src/components/Atlas/tourActivity/TourActivityStatsDialog.tsx
+++ b/client/src/components/Atlas/tourActivity/TourActivityStatsDialog.tsx
@@ -151,7 +151,6 @@ export function TourActivityStatsDialog({
onClose={onClose}
labelledBy={labelId}
width="editor"
- align="top"
header={
<DialogHeader
tile={
diff --git a/client/src/components/Tours/activity/TourActivityDialog.tsx b/client/src/components/Tours/activity/TourActivityDialog.tsx
index c8e8a4edc..cf67c35d5 100644
--- a/client/src/components/Tours/activity/TourActivityDialog.tsx
+++ b/client/src/components/Tours/activity/TourActivityDialog.tsx
@@ -208,7 +208,6 @@ export default function TourActivityDialog({
onClose={state.closeAssign}
labelledBy={labelId}
width="detail"
- align="top"
blocked={state.busy || importing}
header={
<DialogHeader
diff --git a/client/src/components/Tours/collection/CollectionTourTakeOverDialog.tsx b/client/src/components/Tours/collection/CollectionTourTakeOverDialog.tsx
index 3e9ec9402..151b6cf2e 100644
--- a/client/src/components/Tours/collection/CollectionTourTakeOverDialog.tsx
+++ b/client/src/components/Tours/collection/CollectionTourTakeOverDialog.tsx
@@ -356,7 +356,6 @@ export function CollectionTourTakeOverDialog({ takeOver }: { takeOver: Collectio
onClose={takeOver.close}
labelledBy={labelId}
width={takeOver.done ? 'narrow' : 'wide'}
- align="top"
blocked={takeOver.taking}
header={
<DialogHeader
diff --git a/client/src/components/Tours/collection/SaveTourToCollectionDialog.tsx b/client/src/components/Tours/collection/SaveTourToCollectionDialog.tsx
index d25f13789..f7128369b 100644
--- a/client/src/components/Tours/collection/SaveTourToCollectionDialog.tsx
+++ b/client/src/components/Tours/collection/SaveTourToCollectionDialog.tsx
@@ -121,7 +121,6 @@ export function SaveTourToCollectionDialog({ keep, tourName }: { keep: SaveTourT
onClose={keep.close}
labelledBy={labelId}
width="narrow"
- align="top"
blocked={keep.saving}
header={
<DialogHeader
diff --git a/client/src/components/Tours/horse/HorseRouteDialog.tsx b/client/src/components/Tours/horse/HorseRouteDialog.tsx
index 99be13534..0bda30081 100644
--- a/client/src/components/Tours/horse/HorseRouteDialog.tsx
+++ b/client/src/components/Tours/horse/HorseRouteDialog.tsx
@@ -71,7 +71,6 @@ export function HorseRouteDialog({
onClose={onClose}
labelledBy={labelId}
width="editor"
- align="top"
header={
<DialogHeader
tile={
diff --git a/client/src/components/Tours/library/TourLibraryDialog.tsx b/client/src/components/Tours/library/TourLibraryDialog.tsx
index f1dffb023..ab4110314 100644
--- a/client/src/components/Tours/library/TourLibraryDialog.tsx
+++ b/client/src/components/Tours/library/TourLibraryDialog.tsx
@@ -192,7 +192,6 @@ export function TourLibraryDialog({ library }: { library: TourLibrary }) {
onClose={library.close}
labelledBy={labelId}
width="wide"
- align="top"
blocked={library.taking}
header={
<DialogHeader
diff --git a/client/src/components/Tours/packing/TourPackingLinkDialog.tsx b/client/src/components/Tours/packing/TourPackingLinkDialog.tsx
index e44ee95db..48361b4dd 100644
--- a/client/src/components/Tours/packing/TourPackingLinkDialog.tsx
+++ b/client/src/components/Tours/packing/TourPackingLinkDialog.tsx
@@ -100,7 +100,6 @@ export function TourPackingLinkDialog({ packing, tourName }: { packing: TourPack
onClose={packing.close}
labelledBy={labelId}
width="narrow"
- align="top"
blocked={packing.saving}
header={
<DialogHeader
diff --git a/client/src/components/Tours/walk/WalkImportDialog.tsx b/client/src/components/Tours/walk/WalkImportDialog.tsx
index 8690ebe44..11dae97e9 100644
--- a/client/src/components/Tours/walk/WalkImportDialog.tsx
+++ b/client/src/components/Tours/walk/WalkImportDialog.tsx
@@ -220,7 +220,6 @@ export function WalkImportDialog({
onClose={walkImport.close}
labelledBy={titleId}
width="narrow"
- align="top"
onSubmit={submit}
header={head}
footer={<WalkImportFooter walkImport={walkImport} />}