From 51dd2d4fcf02908eb801ab8dc2d92f33b3e3ba84 Mon Sep 17 00:00:00 2001 From: kurt-croix Date: Mon, 4 May 2026 09:39:13 -0500 Subject: [PATCH] fix: select dropdowns unresponsive on mobile inside Sheet Root cause: SelectContent z-index (z-50) was below Sheet overlay (z-[2000]), so the dropdown rendered behind the sheet on mobile. - Bump SelectContent z-index to z-[3000] to render above Sheet - Use position='item-aligned' in ReportForm selects for better mobile behavior --- src/components/ReportForm.tsx | 4 ++-- src/components/ui/select.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ReportForm.tsx b/src/components/ReportForm.tsx index fd59e91..af946de 100644 --- a/src/components/ReportForm.tsx +++ b/src/components/ReportForm.tsx @@ -375,7 +375,7 @@ export function ReportForm({ selectedLocation, onLocationSelect, onReportCreated - + {HAZARD_TYPES.map((type) => ( {type.icon} {type.label} @@ -390,7 +390,7 @@ export function ReportForm({ selectedLocation, onLocationSelect, onReportCreated - + {SEVERITY_LEVELS.map((level) => ( diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsx index ea85bc1..93cd424 100644 --- a/src/components/ui/select.tsx +++ b/src/components/ui/select.tsx @@ -73,7 +73,7 @@ const SelectContent = React.forwardRef<