Skip to content

Commit

Permalink
feat: move notifs to bottom right
Browse files Browse the repository at this point in the history
  • Loading branch information
asharonbaltazar committed Dec 7, 2022
1 parent 91c8fd1 commit 7bbaf4f
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions frontend/components/context/Notifications/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ const Notifications = ({
}

return (
<div className="hidden fixed z-50 top-1 w-full inset-x-0 pointer-events-none md:flex justify-center">
<div className="flex flex-col gap-y-2 w-96">
{notifications.map((notif) => (
<Notification
key={notif.text}
notification={notif}
clearNotification={clearNotification}
/>
))}
</div>
<div className="hidden fixed z-50 md:flex md:flex-col-reverse bottom-1 gap-y-2 w-96 h-full right-1 pointer-events-none">
{notifications.map((notif) => (
<Notification
key={notif.text}
notification={notif}
clearNotification={clearNotification}
/>
))}
</div>
);
};
Expand Down

0 comments on commit 7bbaf4f

Please sign in to comment.