diff --git a/vuu-ui/packages/vuu-popups/src/notifications/NotificationsProvider.tsx b/vuu-ui/packages/vuu-popups/src/notifications/NotificationsProvider.tsx index eadbc5825..9fd2c67e9 100644 --- a/vuu-ui/packages/vuu-popups/src/notifications/NotificationsProvider.tsx +++ b/vuu-ui/packages/vuu-popups/src/notifications/NotificationsProvider.tsx @@ -60,7 +60,6 @@ export const NotificationsProvider = (props: { return (
{ const [right, setRight] = useState(-toastWidth - toastContainerRightPadding); useEffect(() => { - setRight(toastContainerRightPadding); + setTimeout( + () => setRight(toastContainerRightPadding) + ); + if (animated) { setTimeout( () => setRight(-toastWidth - toastContainerRightPadding), diff --git a/vuu-ui/packages/vuu-popups/src/notifications/notifications.css b/vuu-ui/packages/vuu-popups/src/notifications/notifications.css index d49c8d00c..8623c6f4b 100644 --- a/vuu-ui/packages/vuu-popups/src/notifications/notifications.css +++ b/vuu-ui/packages/vuu-popups/src/notifications/notifications.css @@ -1,13 +1,3 @@ -.vuuToastNotifications-toastContainer { - --top: 60px; - position: absolute; - right: 0; - top: var(--top); - overflow: hidden; - height:calc(100% - var(--top)); - font-size: 12px; -} - .vuuToastNotifications-toast { --vuu-icon-size: 24px; position: absolute;