Skip to content

Commit f63dcf4

Browse files
fix relative heights for phones
1 parent 60949aa commit f63dcf4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/common/Modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function Modal({
3737
<div className="fixed inset-0 z-0 flex items-center justify-center bg-black/30 py-2">
3838
<div
3939
className={cn(
40-
"relative mx-4 flex h-fit w-full max-w-md flex-col items-center overflow-y-auto rounded-2xl bg-white p-6 shadow-xl md:h-fit md:max-h-[calc(100vh-32px)]",
40+
"relative mx-4 flex h-fit w-full max-w-md flex-col items-center overflow-y-auto rounded-2xl bg-white p-6 shadow-xl md:h-fit md:max-h-[calc(100dvh-32px)]",
4141
className
4242
)}
4343
>

components/deposit/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function DepositModal({ open, onClose, walletAddress }: DepositModalProps
5858
showBackButton={step !== "processing"}
5959
onBack={step === "options" ? handleDone : restartFlow}
6060
className={cn(
61-
"top-[70px] h-[calc(100vh-174px)] md:max-h-[calc(100vh-174px)] lg:top-0 lg:max-h-[calc(100vh-32px)]",
61+
"top-[70px] h-[calc(100dvh-174px)] md:max-h-[calc(100dvh-174px)] lg:top-0 lg:max-h-[calc(100dvh-32px)]",
6262
amount && " lg:min-h-[718px]"
6363
)}
6464
title="Deposit"

0 commit comments

Comments
 (0)