Commit f6a7c856 authored by aballerr's avatar aballerr Committed by GitHub

fix: overflow and empty popup (#4973)

* fixing a popup bug and wallet overflow
parent a21bbfd5
...@@ -81,11 +81,11 @@ export default function PopupItem({ ...@@ -81,11 +81,11 @@ export default function PopupItem({
popupContent = <FailedNetworkSwitchPopup chainId={content.failedSwitchNetwork} /> popupContent = <FailedNetworkSwitchPopup chainId={content.failedSwitchNetwork} />
} }
return ( return popupContent ? (
<Popup> <Popup>
<StyledClose color={theme.deprecated_text2} onClick={removeThisPopup} /> <StyledClose color={theme.deprecated_text2} onClick={removeThisPopup} />
{popupContent} {popupContent}
{removeAfterMs !== null ? <AnimatedFader style={faderStyle} /> : null} {removeAfterMs !== null ? <AnimatedFader style={faderStyle} /> : null}
</Popup> </Popup>
) ) : null
} }
...@@ -6,6 +6,7 @@ const Menu = styled.div` ...@@ -6,6 +6,7 @@ const Menu = styled.div`
height: 100%; height: 100%;
font-size: 16px; font-size: 16px;
overflow: auto; overflow: auto;
max-height: 450px;
// Firefox scrollbar styling // Firefox scrollbar styling
scrollbar-width: thin; scrollbar-width: thin;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment