Skip to content

Commit

Permalink
Merge branch 'main' of github.com:safe-global/web-core into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Nov 30, 2022
2 parents 7823e6c + 51e0792 commit 94cd4d4
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 31 deletions.
2 changes: 1 addition & 1 deletion public/images/common/copy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/images/sidebar/copy-bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions public/images/sidebar/copy.svg

This file was deleted.

10 changes: 0 additions & 10 deletions public/images/sidebar/qr.svg

This file was deleted.

14 changes: 1 addition & 13 deletions src/components/common/CopyButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,7 @@ const CopyButton = ({
return (
<Tooltip title={tooltipText} placement="top" onMouseLeave={handleMouseLeave}>
<IconButton aria-label={initialToolTipText} onClick={handleCopy} size="small" className={className}>
{children ?? (
<SvgIcon
component={CopyIcon}
inheritViewBox
color="primary"
sx={{
'& path': {
fill: ({ palette }) => palette.border.main,
},
}}
fontSize="small"
/>
)}
{children ?? <SvgIcon component={CopyIcon} inheritViewBox color="border" fontSize="small" />}
</IconButton>
</Tooltip>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/dashboard/Overview/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const Overview = (): ReactElement => {
</Grid>

<Box mt={2} mb={4}>
<EthHashInfo showAvatar={false} address={safeAddress} shortAddress={false} />
<EthHashInfo showAvatar={false} address={safeAddress} shortAddress={false} showCopyButton hasExplorer />
</Box>

<Grid container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
bottom: 0;
right: 0;
width: 100%;
z-index: var(--onboard-modal-z-index, var(--modal-z-index));

/* MUI Drawer z-index default value see: https://mui.com/material-ui/customization/default-theme/?expand-path=$.zIndex */
z-index: 1200;

/*this rule is needed to prevent the bar from being expanded outside the screen without scrolling on mobile devices*/
max-height: 90vh;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar/SidebarHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const SafeHeader = (): ReactElement => {
</Track>

<Track {...OVERVIEW_EVENTS.OPEN_EXPLORER}>
<a target="_blank" rel="noreferrer" href={blockExplorerLink?.href || '#'}>
<a target="_blank" rel="noreferrer" href={blockExplorerLink?.href || ''}>
<HeaderIconButton title={blockExplorerLink?.title || ''}>
<SvgIcon component={LinkIconBold} inheritViewBox fontSize="small" color="primary" />
</HeaderIconButton>
Expand Down

0 comments on commit 94cd4d4

Please sign in to comment.