Skip to content

Commit b2fc160

Browse files
authored
Merge pull request #66 from junaidkhan1723/main
style(ui): add scroll to registration form and hide scrollbar
2 parents 9e57b5b + 1301736 commit b2fc160

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/components/auth/RegisterForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default function RegisterForm({ onSuccess, onBack, theme }) {
141141
exit={{ opacity: 0, x: -100 }}
142142
className="w-full max-w-md"
143143
>
144-
<div className="bg-white/10 backdrop-blur-xl rounded-3xl p-8 border border-white/20 shadow-2xl">
144+
<div className="bg-white/10 backdrop-blur-xl rounded-3xl p-8 border border-white/20 shadow-2xl overflow-y-auto max-h-[90vh] scrollbar-hide">
145145
<div className="text-center mb-8">
146146
<button
147147
onClick={onBack}
@@ -358,4 +358,4 @@ export default function RegisterForm({ onSuccess, onBack, theme }) {
358358
</div>
359359
</motion.div>
360360
);
361-
}
361+
}

src/styles/globals.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,3 +308,14 @@ body {
308308
height: 14px;
309309
}
310310
}
311+
312+
/* Hide scrollbar for Chrome, Safari, Edge */
313+
.scrollbar-hide::-webkit-scrollbar {
314+
display: none;
315+
}
316+
317+
/* Hide scrollbar for Firefox */
318+
.scrollbar-hide {
319+
scrollbar-width: none;
320+
-ms-overflow-style: none;
321+
};

0 commit comments

Comments
 (0)