Skip to content

Commit ccab94a

Browse files
committed
fix: modals on mobile not scrollable
1 parent 87007e4 commit ccab94a

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

app/app/components/AdminLoginModal.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,13 @@ export default function AdminLoginModal({
5050
};
5151

5252
return (
53-
<div className="fixed inset-0 z-[1000] flex items-center justify-center h-screen">
54-
{/* Backdrop */}
53+
<div className="fixed inset-0 z-[1000] flex items-center justify-center h-screen md:p-4">
5554
<div
5655
className="absolute inset-0 bg-background-dark/80 backdrop-blur-sm z-[1001]"
5756
onClick={onClose}
5857
></div>
5958

60-
{/* Modal */}
61-
<div className="relative z-[1002] max-w-lg w-full mx-4 p-6 rounded-xl bg-background-light border border-primary-light/20 shadow-2xl slide-fade-in">
59+
<div className="relative z-[1002] w-full h-full md:h-auto md:max-w-lg md:max-h-[90vh] overflow-y-auto p-6 md:rounded-xl bg-background-light border-0 md:border md:border-primary-light/20 shadow-2xl slide-fade-in">
6260
<h3 className="text-xl font-bold mb-4 gradient-text">
6361
Admin Dashboard Login
6462
</h3>
@@ -91,7 +89,6 @@ export default function AdminLoginModal({
9189
</div>
9290
</div>
9391

94-
{/* Public Key */}
9592
<div className="space-y-2">
9693
<label className="block text-sm font-medium text-secondary-light">
9794
Public Key (Orderly Key)
@@ -113,7 +110,6 @@ export default function AdminLoginModal({
113110
</div>
114111
</div>
115112

116-
{/* Private Key */}
117113
<div className="space-y-2">
118114
<label className="block text-sm font-medium text-secondary-light">
119115
Private Key (Secret Key)

app/app/components/OrderlyKeyLoginModal.tsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,13 @@ export default function OrderlyKeyLoginModal({
9494
if (!isOpen) return null;
9595

9696
return (
97-
<div className="fixed inset-0 z-[1000] flex items-center justify-center h-screen">
98-
{/* Backdrop */}
97+
<div className="fixed inset-0 z-[1000] flex items-center justify-center h-screen md:p-4">
9998
<div
10099
className="absolute inset-0 bg-background-dark/80 backdrop-blur-sm z-[1001]"
101100
onClick={isCreating ? undefined : onClose}
102101
></div>
103102

104-
{/* Modal */}
105-
<div className="relative z-[1002] max-w-md p-6 rounded-xl bg-background-light border border-primary-light/20 shadow-2xl slide-fade-in">
103+
<div className="relative z-[1002] w-full h-full md:h-auto md:max-w-md md:max-h-[90vh] overflow-y-auto p-6 md:rounded-xl bg-background-light border-0 md:border md:border-primary-light/20 shadow-2xl slide-fade-in">
106104
<div className="text-center mb-6">
107105
<div className="bg-warning/20 p-3 rounded-full w-16 h-16 mx-auto mb-4 flex items-center justify-center">
108106
<div className="i-mdi:key text-warning w-8 h-8"></div>
@@ -111,8 +109,8 @@ export default function OrderlyKeyLoginModal({
111109
Create Orderly Key
112110
</h2>
113111
<p className="text-gray-300">
114-
To manage your referral settings, you'll need to create an Orderly
115-
API key by signing a message with your wallet.
112+
To interact with the Orderly Network API, you'll need to create an
113+
Orderly API key by signing a message with your wallet.
116114
</p>
117115
</div>
118116

@@ -131,9 +129,7 @@ export default function OrderlyKeyLoginModal({
131129
</li>
132130
<li className="flex items-start gap-2">
133131
<div className="i-mdi:numeric-3-circle text-primary w-4 h-4 flex-shrink-0 mt-0.5"></div>
134-
<span>
135-
The key will be stored locally for referral management
136-
</span>
132+
<span>The key will be stored locally for API interactions</span>
137133
</li>
138134
</ul>
139135
</div>
@@ -143,9 +139,10 @@ export default function OrderlyKeyLoginModal({
143139
Security Note
144140
</h4>
145141
<p className="text-gray-400 text-sm">
146-
This key allows secure API access to manage your referral program.
147-
It will be stored locally in your browser and is unique to your DEX
148-
broker account. No gas fees or blockchain transactions are required.
142+
This key allows secure API access to manage your DEX settings and
143+
interact with the Orderly Network. It will be stored locally in your
144+
browser and is unique to your DEX broker account. No gas fees or
145+
blockchain transactions are required.
149146
</p>
150147
</div>
151148

0 commit comments

Comments
 (0)