Skip to content

Commit

Permalink
πŸ”§ fix: modal z-index μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Dec 4, 2024
1 parent 726dd4e commit 6c25592
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions FE/src/components/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function Login() {
};

return (
<>
<div className='z-30'>
<Overay onClick={() => toggleModal()} />
<section className='fixed left-1/2 top-1/2 flex w-[500px] -translate-x-1/2 -translate-y-1/2 flex-col rounded-2xl bg-white p-20 shadow-lg'>
<h2 className='mb-5 text-3xl font-bold'>JuGa</h2>
Expand Down Expand Up @@ -98,6 +98,6 @@ export default function Login() {
<XMarkIcon className='h-7 w-7 text-juga-grayscale-500' />
</button>
</section>
</>
</div>
);
}
8 changes: 4 additions & 4 deletions FE/src/components/Mypage/CancelAlertModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function CancelAlertModal() {
const { stock_name, amount, trade_type } = order;

return (
<>
<div className='z-30'>
<Overay onClick={() => close()} />
<section className='fixed left-1/2 top-1/2 flex w-[440px] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 rounded-2xl bg-white p-7 shadow-lg'>
<div className='text-lg font-semibold'>
Expand All @@ -17,7 +17,7 @@ export default function CancelAlertModal() {
</div>
<div className='flex justify-center gap-2'>
<button
className='w-24 rounded-xl bg-juga-grayscale-500 px-6 py-2 text-white transition hover:bg-juga-grayscale-black'
className='w-24 px-6 py-2 text-white transition rounded-xl bg-juga-grayscale-500 hover:bg-juga-grayscale-black'
onClick={() => {
onSuccess();
close();
Expand All @@ -26,13 +26,13 @@ export default function CancelAlertModal() {
λ„€
</button>
<button
className='w-24 rounded-xl bg-juga-grayscale-100 px-6 py-2 text-gray-800 hover:bg-juga-grayscale-200'
className='w-24 px-6 py-2 text-gray-800 rounded-xl bg-juga-grayscale-100 hover:bg-juga-grayscale-200'
onClick={close}
>
μ•„λ‹ˆμ˜€
</button>
</div>
</section>
</>
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ export default function TradeAlertModal({
};

return (
<>
<div className='z-30'>
<Overay onClick={() => toggleModal()} />
<section className='fixed left-1/2 top-1/2 flex w-[500px] -translate-x-1/2 -translate-y-1/2 flex-col rounded-2xl bg-white p-5 shadow-lg'>
<div className='self-start text-lg font-bold'>
{stockName} {type === 'BUY' ? '맀수' : '맀도'} {count}μ£Ό
</div>
<div className='my-5 flex flex-col gap-2 text-juga-grayscale-500'>
<div className='flex flex-col gap-2 my-5 text-juga-grayscale-500'>
<div className='flex justify-between'>
<p>{count}μ£Ό 희망가격</p>
<p>{totalPrice.toLocaleString()}원</p>
Expand All @@ -59,7 +59,7 @@ export default function TradeAlertModal({

<div className='flex justify-end gap-2'>
<button
className='rounded-xl bg-juga-grayscale-100 px-6 py-2 text-gray-800'
className='px-6 py-2 text-gray-800 rounded-xl bg-juga-grayscale-100'
onClick={toggleModal}
>
μ·¨μ†Œ
Expand All @@ -72,6 +72,6 @@ export default function TradeAlertModal({
</button>
</div>
</section>
</>
</div>
);
}

0 comments on commit 6c25592

Please sign in to comment.