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(packing): stack the item window and the Lists menu on the app's layers

Maurice439736e9041f
diff --git a/client/scripts/theme-baseline.json b/client/scripts/theme-baseline.json
index 23a345d8a..fe60408e7 100644
--- a/client/scripts/theme-baseline.json
+++ b/client/scripts/theme-baseline.json
@@ -75,8 +75,7 @@
"components/PDF/TripPDF.tsx": 44,
"components/Packing/PackingListPanelBagModal.tsx": 2,
"components/Packing/PackingListPanelCategoryGroup.tsx": 5,
- "components/Packing/PackingListPanelHeader.tsx": 5,
- "components/Packing/PackingListPanelItemRow.tsx": 2,
+ "components/Packing/PackingListPanelHeader.tsx": 3,
"components/Packing/packingPrintDocument.ts": 24,
"components/Planner/AirTrailImportModal.tsx": 4,
"components/Planner/BookingCostsSection.tsx": 1,
@@ -269,12 +268,12 @@
"mobile/screens/trip/tabs/MFileMenuSheet.tsx": 1,
"mobile/screens/trip/tabs/MFileTrashSheet.tsx": 4,
"mobile/screens/trip/tabs/MFilesTab.tsx": 12,
- "mobile/screens/trip/tabs/MPackItemSheet.tsx": 7,
+ "mobile/screens/trip/tabs/MPackItemSheet.tsx": 1,
"mobile/screens/trip/tabs/MPackingImportSheet.tsx": 3,
- "mobile/screens/trip/tabs/MPackingListTab.tsx": 32,
+ "mobile/screens/trip/tabs/MPackingListTab.tsx": 2,
"mobile/screens/trip/tabs/MReservationCardParts.tsx": 6,
"mobile/screens/trip/tabs/MTaskSheet.tsx": 6,
- "mobile/screens/trip/tabs/MTodoListTab.tsx": 15,
+ "mobile/screens/trip/tabs/MTodoListTab.tsx": 3,
"mobile/screens/trip/tabs/MTransportsTab.tsx": 2,
"mobile/screens/trip/tabs/filesModel.ts": 5,
"mobile/screens/trip/tabs/tabChrome.tsx": 12,
diff --git a/client/src/components/Packing/PackingItemDetail.tsx b/client/src/components/Packing/PackingItemDetail.tsx
index c87d6c102..b1dacd6f8 100644
--- a/client/src/components/Packing/PackingItemDetail.tsx
+++ b/client/src/components/Packing/PackingItemDetail.tsx
@@ -544,11 +544,11 @@ export function PackingItemDetail(props: Readonly<PackingItemDetailProps>) {
return createPortal(
<>
- <div role="presentation" className="fixed inset-0 z-[1098]" onClick={onClose} />
+ <div role="presentation" className="fixed inset-0 z-[var(--z-toast)]" onClick={onClose} />
<div
role="dialog"
aria-label={item.name}
- className="trek-menu-enter fixed z-[1099] overflow-y-auto"
+ className="trek-menu-enter fixed z-[var(--z-toast)] overflow-y-auto"
onKeyDown={(e) => {
if (e.key === 'Escape') {
e.stopPropagation();
diff --git a/client/src/components/Packing/PackingListsMenu.tsx b/client/src/components/Packing/PackingListsMenu.tsx
index 1cd018f09..5530959a0 100644
--- a/client/src/components/Packing/PackingListsMenu.tsx
+++ b/client/src/components/Packing/PackingListsMenu.tsx
@@ -77,11 +77,11 @@ export default function PackingListsMenu(props: Readonly<PackingListsMenuProps>)
>
<MoreHorizontal size={14} strokeWidth={2.5} />
</button>
- {open && <div role="presentation" className="fixed inset-0 z-[99]" onClick={close} />}
+ {open && <div role="presentation" className="fixed inset-0 z-50" onClick={close} />}
<div
role="menu"
hidden={!open}
- className="trek-menu-enter absolute end-0 top-full z-[100] mt-1.5 w-[260px] origin-top-right"
+ className="trek-menu-enter absolute end-0 top-full z-[var(--z-bar)] mt-1.5 w-[260px] origin-top-right"
style={POPOVER}
>
{canEdit && <ApplyTemplateButton tripId={tripId} visibility={view} variant="menu" onApplied={close} />}