Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

dvh height for mobile expanded view

Francis Caoa7a7293d73b7
diff --git a/src/app/(main)/websites/[websiteId]/ExpandedViewModal.tsx b/src/app/(main)/websites/[websiteId]/ExpandedViewModal.tsx
index 76a17fbb5..9e50788ac 100644
--- a/src/app/(main)/websites/[websiteId]/ExpandedViewModal.tsx
+++ b/src/app/(main)/websites/[websiteId]/ExpandedViewModal.tsx
@@ -26,9 +26,11 @@ export function ExpandedViewModal({
}
};
+ const height = CSS.supports('height', '100dvh') ? 'calc(100dvh - 40px)' : 'calc(100vh - 40px)';
+
return (
<Modal isOpen={!!view} onOpenChange={handleOpenChange} isDismissable>
- <Dialog style={{ maxWidth: 1320, width: '100vw', height: 'calc(100vh - 40px)' }}>
+ <Dialog style={{ maxWidth: 1320, width: '100vw', height: height }}>
{({ close }) => {
return (
<WebsiteExpandedView