Compare commits
1 Commits
master
...
aansari/IN
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e80ca73a0 |
@@ -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 (
|
return (
|
||||||
<OverlayTrigger
|
<OverlayTrigger
|
||||||
trigger="click"
|
trigger="click"
|
||||||
@@ -54,6 +61,7 @@ const Notifications = () => {
|
|||||||
overlay={(
|
overlay={(
|
||||||
<Popover
|
<Popover
|
||||||
id="notificationTray"
|
id="notificationTray"
|
||||||
|
style={{ height: `${notificationBarHeight}px` }}
|
||||||
data-testid="notification-tray"
|
data-testid="notification-tray"
|
||||||
className={classNames('overflow-auto rounded-0 border-0', {
|
className={classNames('overflow-auto rounded-0 border-0', {
|
||||||
'w-100': !isOnMediumScreen && !isOnLargeScreen,
|
'w-100': !isOnMediumScreen && !isOnLargeScreen,
|
||||||
|
|||||||
@@ -190,8 +190,6 @@ $white: #fff;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.popover {
|
.popover {
|
||||||
max-height: calc(100% - 68px);
|
|
||||||
min-height: 1220px;
|
|
||||||
filter: none;
|
filter: none;
|
||||||
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15), 0px 2px 8px rgba(0, 0, 0, 0.15);
|
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15), 0px 2px 8px rgba(0, 0, 0, 0.15);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user