Skip to content

Commit 69ce283

Browse files
authored
Merge pull request #183 from FC-InnerCircle-ICD2/fix/signup-scroll-2
🐛 Fix: 모바일 크기별로 대응할수 있도록 수정
2 parents 0025ded + 48756da commit 69ce283

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/shared/SignupModal.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const SignupModal = () => {
2222
const { hideModal } = modalStore()
2323

2424
return (
25-
<div className="size-full bg-white p-mobile_safe">
25+
<div className="flex h-dvh w-full flex-col bg-white p-mobile_safe">
2626
<div className="relative my-6 flex justify-end">
2727
<div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-lg font-bold">
2828
회원가입
@@ -261,8 +261,8 @@ const SignupForm = () => {
261261
}, [geolocationToAddressData])
262262

263263
return (
264-
<form onSubmit={onSubmit}>
265-
<div className="h-[77vh] grow overflow-y-auto pb-10">
264+
<form onSubmit={onSubmit} className="grid grow grid-rows-[1fr_56px] overflow-y-auto">
265+
<div className="overflow-y-auto pb-5">
266266
<div className="mb-3">
267267
<Input
268268
value={signnameValue}
@@ -401,7 +401,7 @@ const SignupForm = () => {
401401
</div>
402402
</div>
403403
</div>
404-
<div className="fixed inset-x-0 bottom-0 bg-white px-mobile_safe py-2">
404+
<div className="sticky bottom-0 bg-white py-2">
405405
<Button className="disabled:bg-slate-400" type="submit" size="m" disabled={!isValid}>
406406
가입하기
407407
</Button>

0 commit comments

Comments
 (0)