Skip to content

Commit

Permalink
Use min() for modal top position (#2583)
Browse files Browse the repository at this point in the history
Use min() for modal top position
  • Loading branch information
benjaminleonard authored Nov 27, 2024
1 parent 059c551 commit 23423c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ui/lib/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function Modal({

<AnimatedDialogContent
className={cn(
'pointer-events-auto fixed left-1/2 top-1/2 z-modal m-0 flex max-h-[min(800px,80vh)] w-full flex-col justify-between rounded-lg border p-0 bg-raise border-secondary elevation-2',
'pointer-events-auto fixed left-1/2 top-[min(50%,500px)] z-modal m-0 flex max-h-[min(800px,80vh)] w-full flex-col justify-between rounded-lg border p-0 bg-raise border-secondary elevation-2',
narrow ? 'max-w-[24rem]' : 'max-w-[28rem]'
)}
aria-labelledby={titleId}
Expand Down

0 comments on commit 23423c2

Please sign in to comment.