Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fix: Identicon visual issue (#218)
Browse files Browse the repository at this point in the history
* Fix identicon visual issue

* Set v2.0.1
  • Loading branch information
yagopv authored Feb 3, 2023
1 parent 7ec9757 commit e3a1af8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@safe-global/safe-react-components",
"version": "2.0.0",
"version": "2.0.1",
"description": "Safe UI components",
"main": "dist/index.min.js",
"typings": "dist/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion src/components/EthHashInfo/EthHashInfo.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import * as React from 'react';

import EthHashInfo from './';

export const Main = (): React.ReactElement => {
export const Main = ({ size }): React.ReactElement => {
return (
<EthHashInfo
avatarSize={size || null}
showPrefix
prefix="eth"
address="0x40A2aCCbd92BCA938b02010E17A5b8929b49130D"
Expand Down Expand Up @@ -45,6 +46,10 @@ export const withCopyButton = (): React.ReactElement => {
);
};

export const withAvatarSize = (): React.ReactElement => {
return <Main size={100} />;
};

export default {
title: 'Components/EthHashInfo',
component: Main,
Expand Down
4 changes: 4 additions & 0 deletions src/components/EthHashInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ const AvatarContainer = styled('div')<{ size?: number }>(({ size }) => ({
flexShrink: 0,
width: size || '2.3em !important',
height: size || '2.3em !important',
'> *': {
width: '100% !important',
height: '100% !important',
},
}));

const AddressContainer = styled('div')({
Expand Down

0 comments on commit e3a1af8

Please sign in to comment.