Skip to content

Commit

Permalink
Smoother animate in of the notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
yornaath committed Oct 6, 2023
1 parent b3abe2b commit 4eef663
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions components/top-bar/Alerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ export const Alerts = () => {
return (
<>
<div className="flex gap-2">
<Menu.Button className="text-white font-light relative flex center gap-2">
<Menu.Button
disabled={alerts.length === 0}
className="text-white font-light relative flex center gap-2"
>
<div
className={`transition-all ${
hasNotifications
Expand Down Expand Up @@ -70,11 +73,11 @@ export const Alerts = () => {
<Transition
as={Fragment}
enter="transition ease-out duration-100"
enterFrom="transform -translate-y-2 md:translate-y-0 md:scale-95"
enterTo="transform translate-y-0 md:scale-100"
leave="transition ease-in translate-y-2 md:translate-y-0 duration-75"
leaveFrom="transform translate-y-0 md:scale-100"
leaveTo="transform opacity-0 -translate-y-2 md:translate-y-0 md:scale-95"
enterFrom="transform -translate-y-2"
enterTo="transform translate-y-0 "
leave="transition ease-in translate-y-2 duration-75"
leaveFrom="transform translate-y-0"
leaveTo="transform opacity-0 -translate-y-2"
>
<Menu.Items
onMouseEnter={mouseEnterMenuHandler}
Expand Down

0 comments on commit 4eef663

Please sign in to comment.