don't change dialog size

This commit is contained in:
Josh Hawkins 2025-11-05 11:44:39 -06:00
parent f8d8c853f5
commit 0ed635bbac

View File

@ -242,8 +242,7 @@ export default function SearchDetailDialog({
"relative flex items-center justify-between",
"w-full",
// match dialog's max-width classes
"sm:max-w-xl md:max-w-4xl lg:max-w-4xl xl:max-w-7xl",
page == "tracking_details" && "lg:max-w-[75%] xl:max-w-[80%]",
"sm:max-w-xl md:max-w-4xl lg:max-w-[75%] xl:max-w-[80%]",
)}
>
<Tooltip>
@ -289,10 +288,7 @@ export default function SearchDetailDialog({
className={cn(
"scrollbar-container overflow-y-auto",
isDesktop &&
"max-h-[95dvh] sm:max-w-xl md:max-w-4xl lg:max-w-4xl xl:max-w-7xl",
isDesktop &&
page == "tracking_details" &&
"lg:max-w-[75%] xl:max-w-[80%]",
"max-h-[95dvh] sm:max-w-xl md:max-w-4xl lg:max-w-[75%] xl:max-w-[80%]",
isMobile && "px-4",
)}
onInteractOutside={(e) => {