Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
fix: remove background from styled Avatar components - closes #371 (#398
Browse files Browse the repository at this point in the history
)
  • Loading branch information
DanielRuf authored and juanpicado committed Dec 28, 2019
1 parent 797c238 commit 787dda4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/Install/InstallListItem.tsx
Expand Up @@ -26,6 +26,9 @@ const InstallListItemText = styled(ListItemText)({
const PackageMangerAvatar = styled(Avatar)({
borderRadius: '0px',
padding: '0',
img: {
backgroundColor: 'transparent',
},
});

export enum DependencyManager {
Expand Down
10 changes: 9 additions & 1 deletion src/components/Repository/Repository.tsx
Expand Up @@ -34,6 +34,14 @@ const RepositoryListItemText = styled(ListItemText)({
margin: 0,
});

const RepositoryAvatar = styled(Avatar)({
borderRadius: '0px',
padding: '0',
img: {
backgroundColor: 'transparent',
},
});

const Repository: React.FC = () => {
const detailContext = React.useContext(DetailContext);

Expand All @@ -58,7 +66,7 @@ const Repository: React.FC = () => {
return (
<List dense={true} subheader={<StyledText variant="subtitle1">{'Repository'}</StyledText>}>
<RepositoryListItem button={true}>
<Avatar src={git} />
<RepositoryAvatar src={git} />
<RepositoryListItemText
primary={
<CopyToClipBoard text={repositoryURL}>
Expand Down

0 comments on commit 787dda4

Please sign in to comment.