Skip to content

Commit 9f441c3

Browse files
committed
Fix Alert positioning issue
1 parent f01f700 commit 9f441c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/utils/Alert.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const Alert = () => {
2323

2424
return (
2525

26-
<div className={`alert alert-${alert.type} absolute top-20 left-1/3 rounded-large -translate-x-1/4 -translate-y-1/4 w-[60vw] z-30 opacity-85 ease-linear duration-400`}>
26+
<div className={`alert alert-${alert.type} fixed top-20 left-1/3 rounded-large -translate-x-1/4 -translate-y-1/4 w-[60vw] z-50 opacity-85 ease-linear duration-400`}>
2727
{alert.message}
28-
<AiOutlineClose onClick={() => dispatch(clearAlert())} className='absolute right-4 top-5'/>
28+
<AiOutlineClose onClick={() => dispatch(clearAlert())} className='absolute right-4 top-5'/>
2929
</div>
3030
);
3131
};

0 commit comments

Comments
 (0)