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.

set maxheight to modals

Francis Cao7800fce2ecd3
diff --git a/src/app/(main)/websites/[websiteId]/cohorts/CohortAddButton.tsx b/src/app/(main)/websites/[websiteId]/cohorts/CohortAddButton.tsx
index 3f155f64a..aa62f1d9b 100644
--- a/src/app/(main)/websites/[websiteId]/cohorts/CohortAddButton.tsx
+++ b/src/app/(main)/websites/[websiteId]/cohorts/CohortAddButton.tsx
@@ -15,7 +15,10 @@ export function CohortAddButton({ websiteId }: { websiteId: string }) {
<Text>{formatMessage(labels.cohort)}</Text>
</Button>
<Modal>
- <Dialog title={formatMessage(labels.cohort)} style={{ width: 800, minHeight: 300 }}>
+ <Dialog
+ title={formatMessage(labels.cohort)}
+ style={{ width: 800, minHeight: 300, maxHeight: '90vh' }}
+ >
{({ close }) => {
return <CohortEditForm websiteId={websiteId} onClose={close} />;
}}
diff --git a/src/app/(main)/websites/[websiteId]/cohorts/CohortEditButton.tsx b/src/app/(main)/websites/[websiteId]/cohorts/CohortEditButton.tsx
index 411f932a6..9abb986db 100644
--- a/src/app/(main)/websites/[websiteId]/cohorts/CohortEditButton.tsx
+++ b/src/app/(main)/websites/[websiteId]/cohorts/CohortEditButton.tsx
@@ -17,7 +17,10 @@ export function CohortEditButton({
return (
<ActionButton title={formatMessage(labels.edit)} icon={<Edit />}>
- <Dialog title={formatMessage(labels.cohort)} style={{ width: 800, minHeight: 300 }}>
+ <Dialog
+ title={formatMessage(labels.cohort)}
+ style={{ width: 800, minHeight: 300, maxHeight: '90vh' }}
+ >
{({ close }) => {
return (
<CohortEditForm
diff --git a/src/app/(main)/websites/[websiteId]/segments/SegmentAddButton.tsx b/src/app/(main)/websites/[websiteId]/segments/SegmentAddButton.tsx
index d27acb3c9..ef2079486 100644
--- a/src/app/(main)/websites/[websiteId]/segments/SegmentAddButton.tsx
+++ b/src/app/(main)/websites/[websiteId]/segments/SegmentAddButton.tsx
@@ -15,7 +15,10 @@ export function SegmentAddButton({ websiteId }: { websiteId: string }) {
<Text>{formatMessage(labels.segment)}</Text>
</Button>
<Modal>
- <Dialog title={formatMessage(labels.segment)} style={{ width: 800, minHeight: 300 }}>
+ <Dialog
+ title={formatMessage(labels.segment)}
+ style={{ width: 800, minHeight: 300, maxHeight: '90vh' }}
+ >
{({ close }) => {
return <SegmentEditForm websiteId={websiteId} onClose={close} />;
}}
diff --git a/src/app/(main)/websites/[websiteId]/segments/SegmentEditButton.tsx b/src/app/(main)/websites/[websiteId]/segments/SegmentEditButton.tsx
index ba8f82b4e..951eaeb9a 100644
--- a/src/app/(main)/websites/[websiteId]/segments/SegmentEditButton.tsx
+++ b/src/app/(main)/websites/[websiteId]/segments/SegmentEditButton.tsx
@@ -17,7 +17,10 @@ export function SegmentEditButton({
return (
<ActionButton title={formatMessage(labels.edit)} icon={<Edit />}>
- <Dialog title={formatMessage(labels.segment)} style={{ width: 800, minHeight: 300 }}>
+ <Dialog
+ title={formatMessage(labels.segment)}
+ style={{ width: 800, minHeight: 300, maxHeight: '90vh' }}
+ >
{({ close }) => {
return (
<SegmentEditForm