Skip to content

Commit

Permalink
fix(stats-bar): popover-overflowing
Browse files Browse the repository at this point in the history
  • Loading branch information
Shoaibdev7 committed Oct 2, 2024
1 parent 7c94f52 commit 17cfafd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/Alerts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const Alerts = () => {
</div>
</Tooltip>
</Info>
<Popover
<StyledPopover
anchorEl={anchorEl}
anchorOrigin={{
vertical: 'bottom',
Expand All @@ -51,7 +51,7 @@ export const Alerts = () => {
</p>
))}
</ContentWrapper>
</Popover>
</StyledPopover>
</AlertWrapper>
) : null
}
Expand All @@ -67,6 +67,7 @@ const ContentWrapper = styled(Flex)`
max-height: 33vh;
max-width: 30vw;
background: ${colors.BG1};
padding-top: 0 !important;
.item {
padding: 8px 0;
Expand Down Expand Up @@ -125,3 +126,9 @@ const Info = styled(Flex).attrs({
justify-content: center;
}
`

const StyledPopover = styled(Popover)`
.MuiPopover-paper {
margin-top: 4px;
}
`

0 comments on commit 17cfafd

Please sign in to comment.