From 4e80ca73a0815d143ae7fb72931145320ae769ee Mon Sep 17 00:00:00 2001 From: SundasNoreen Date: Tue, 18 Jul 2023 13:27:13 +0500 Subject: [PATCH] fix: fixed height issue --- src/Notifications/index.jsx | 8 ++++++++ src/index.scss | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) 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={(