mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 02:56:10 +00:00
fix(packing): stack the item window and the Lists menu on the app's layers
The item window sits on the layer of the other floating menus and the Lists menu just above the bars, through the z-index tokens instead of numbers, and the theme baseline follows the files the redesign left with fewer literals.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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} />}
|
||||
|
||||
Reference in New Issue
Block a user