Skip to content

Commit 7b9ace5

Browse files
authored
max height 80dvh (#50)
* max height 80dvh * change alert text
1 parent 580985a commit 7b9ace5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

frontend/src/components/api-route-dialog.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function ApiRouteDialog({ fileId }: { fileId: string }) {
4949
</Button>
5050
</DialogTrigger>
5151
<DialogContent
52-
className="overflow-y-auto max-h-screen min-w-full"
52+
className="overflow-y-auto max-h-[80dvh] min-w-full"
5353
aria-describedby="dialog-description"
5454
>
5555
<DialogHeader>
@@ -92,10 +92,11 @@ console.log(data)
9292
</h4>
9393
<Alert>
9494
<AlertCircle className="h-4 w-4" />
95-
<AlertTitle>
96-
Endpoint won't be generated if the resource contains
95+
<AlertTitle>Missing endpoint?</AlertTitle>
96+
<AlertDescription>
97+
Endpoint won't be generated if the resource name contains
9798
whitespace!
98-
</AlertTitle>
99+
</AlertDescription>
99100
</Alert>
100101
<ApiRouteCollection fileId={fileId} routes={routesData} />
101102
</div>

0 commit comments

Comments
 (0)