mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #6968 from MetaMask/prevent-hidden-popup-overlay
Prevent hidden popup overlay
This commit is contained in:
commit
f679b58fcd
@ -3,7 +3,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 472px;
|
width: 472px;
|
||||||
height: 116px;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
@ -37,7 +36,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.home-notification-wrapper--show-all {
|
.home-notification-wrapper--show-all {
|
||||||
height: 356px;;
|
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
||||||
|
@ -18,7 +18,12 @@ export default class MultipleNotifications extends PureComponent {
|
|||||||
|
|
||||||
const notificationsToBeRendered = notifications.filter(notificationConfig => notificationConfig.shouldBeRendered)
|
const notificationsToBeRendered = notifications.filter(notificationConfig => notificationConfig.shouldBeRendered)
|
||||||
|
|
||||||
return (<div
|
if (notificationsToBeRendered.length === 0) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
className={classnames(...classNames, {
|
className={classnames(...classNames, {
|
||||||
'home-notification-wrapper--show-all': showAll,
|
'home-notification-wrapper--show-all': showAll,
|
||||||
'home-notification-wrapper--show-first': !showAll,
|
'home-notification-wrapper--show-first': !showAll,
|
||||||
@ -33,6 +38,7 @@ export default class MultipleNotifications extends PureComponent {
|
|||||||
'flipped': !showAll,
|
'flipped': !showAll,
|
||||||
})} /> : null}
|
})} /> : null}
|
||||||
</div>
|
</div>
|
||||||
</div>)
|
</div>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user