diff --git a/src/Notifications/index.jsx b/src/Notifications/index.jsx index 31b3aa2..91a995c 100644 --- a/src/Notifications/index.jsx +++ b/src/Notifications/index.jsx @@ -44,6 +44,13 @@ const Notifications = () => { }; }, []); + const viewPortHeight = window.innerHeight; + const headerHeight = document.getElementsByClassName('learning-header'); + let notificationBarHeight = 0; + if (headerHeight.length > 0) { + notificationBarHeight = viewPortHeight - headerHeight[0].clientHeight; + } + return ( { overlay={(